Skip to content

Commit 1b3d58d

Browse files
authored
chore(docs): use static values in demos (#11769)
* chore(docs): use static values in demos * updated time stamp basic format example * added static values for RTL demo * added static values for RTL demo * removed url and deleted paginatedTable.jsx * updated import statement * updated import statement
1 parent e23454e commit 1b3d58d

File tree

8 files changed

+736
-1138
lines changed

8 files changed

+736
-1138
lines changed

packages/react-core/src/components/Timestamp/examples/TimestampBasicFormats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Timestamp, TimestampFormat } from '@patternfly/react-core';
22

33
export const TimestampBasicFormats: React.FunctionComponent = () => {
4-
const currentDate = new Date();
4+
const currentDate = new Date('2025-04-21T23:35:25');
55

66
return (
77
<>

packages/react-core/src/components/Timestamp/examples/TimestampDefaultTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Timestamp, TimestampTooltipVariant } from '@patternfly/react-core';
22

33
export const TimestampDefaultTooltip: React.FunctionComponent = () => {
4-
const currentDate = new Date();
4+
const currentDate = new Date('2025-04-21T14:30:00');
55

66
return (
77
<>

packages/react-core/src/demos/RTL/RTL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
1818
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
1919
import HandPaperIcon from '@patternfly/react-icons/dist/esm/icons/hand-paper-icon';
2020
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
21+
import { rows } from '@patternfly/react-core/dist/esm/demos/sampleDataRTL';
2122

2223
import './examples/PaginatedTable.css';
2324

0 commit comments

Comments
 (0)