Skip to content

Commit

Permalink
website: update website code preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 5, 2023
1 parent 69a88ee commit 03da81d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions www/src/Document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ export const Document = () => (
<Preview>
<Child />
</Preview>
<Toolbar>{param.title || 'Example Preview'}</Toolbar>
<Code>{code}</Code>
<Toolbar text={code}>{param.title || 'Example Preview'}</Toolbar>
<Code>
<code {...rest} />
</Code>
</CodeLayout>
);
}
Expand Down
2 changes: 1 addition & 1 deletion www/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const App = () => {
<Warpper>
<GitHubCorners target="__blank" fixed href="https://github.com/uiwjs/react-tabs-draggable" />
<BackToUp>Top</BackToUp>
<dark-mode permanent></dark-mode>
<dark-mode permanent style={{ fontSize: 24 }}></dark-mode>
<Content>
<Document />
</Content>
Expand Down

0 comments on commit 03da81d

Please sign in to comment.