Skip to content

Commit

Permalink
feat(redmine: #1258410): add Code preview for testPage and DocumentDe…
Browse files Browse the repository at this point in the history
…tails
  • Loading branch information
vapersmile committed Oct 18, 2023
1 parent 599cf01 commit 4bbdcf4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
15 changes: 15 additions & 0 deletions packages/react-front-kit/src/Pages/DocumentDetails/Code.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{/* Checkbox.mdx */}

import { Meta, Source } from '@storybook/blocks';

import * as DocumentDetailsStory from './DocumentDetails.stories';

import DocumentDetails from './DocumentDetails?raw';

<Meta of={DocumentDetailsStory} />

# Code

Code of DocumentDetails page

<Source code={`${DocumentDetails}`} />
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ import {
} from '@phosphor-icons/react';
import { FolderMove, primaryTheme } from '@smile/react-front-kit-shared';

const theme = primaryTheme;

theme.colorScheme = 'dark';

export interface IDocumentDetailsProps {
children?: ReactNode;
}
Expand All @@ -35,7 +31,7 @@ export function DocumentDetails(props: IDocumentDetailsProps): ReactElement {
const { children } = props;
return (
<div>
<MantineProvider theme={theme}>
<MantineProvider theme={primaryTheme}>
<Card padding="40px" radius="lg">
<Text fw="600" size="lg" span>
Générales
Expand Down Expand Up @@ -238,3 +234,5 @@ export function DocumentDetails(props: IDocumentDetailsProps): ReactElement {
</div>
);
}

export default DocumentDetails;
15 changes: 15 additions & 0 deletions packages/react-front-kit/src/Pages/TestPage/Code.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{/* Checkbox.mdx */}

import { Meta, Source } from '@storybook/blocks';

import * as TestPageStory from './TestPage.stories';

import TestPage from './TestPage?raw';

<Meta of={TestPageStory} />

# Code

Code of TestPage page

<Source code={`${TestPage}`} />

0 comments on commit 4bbdcf4

Please sign in to comment.