Skip to content

Commit

Permalink
update link and usage demo
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Sep 15, 2023
1 parent 6251f1d commit dbb09be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions docs/src/components/productJoyUI/ThemableTemplate.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import colors from '@mui/joy/colors';
import { extendTheme, THEME_ID } from '@mui/joy/styles';
import Link from 'docs/src/modules/components/Link';
import Box from '@mui/joy/Box';
import ToggleButtonGroup, { ToggleButtonGroupStaticProps } from '@mui/joy/ToggleButtonGroup';
import Button from '@mui/joy/Button';
Expand All @@ -24,6 +25,7 @@ import ProfileDashboardApp from 'docs/data/joy/getting-started/templates/profile
import MessagesApp from 'docs/data/joy/getting-started/templates/messages/App';
import SignInApp from 'docs/data/joy/getting-started/templates/sign-in-side/App';
import RentalDashboardApp from 'docs/data/joy/getting-started/templates/rental-dashboard/App';
import ROUTES from 'docs/src/route';

const joyColors = {
blue: {
Expand Down Expand Up @@ -534,10 +536,10 @@ export default function ThemableTemplate() {
</TabList>
<ListDivider sx={{ mx: 0 }} />
<ListItem sx={{ px: 0.5 }}>
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<Button
component="a"
href="#"
component={Link}
href={ROUTES.joyTemplates}
noLinkStyle
size="sm"
variant="plain"
endDecorator={<ArrowForwardIcon />}
Expand Down
3 changes: 2 additions & 1 deletion docs/src/modules/components/JoyUsageDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default function JoyUsageDemo<T extends { [k: string]: any } = {}>({
borderColor: `rgba(${theme.vars.palette.neutral.mainChannel} / 0.1)`,
background: `rgba(${theme.vars.palette.primary.mainChannel} / 0.02)`,
backdropFilter: 'blur(8px)',
minWidth: 'max(280px, 36%)',
minWidth: 'max(240px, 36%)',
})}
>
<Box
Expand Down Expand Up @@ -388,6 +388,7 @@ export default function JoyUsageDemo<T extends { [k: string]: any } = {}>({
value={value}
disableIcon
overlay
sx={{ fontSize: 'xs' }}
/>
</Chip>
);
Expand Down
1 change: 1 addition & 0 deletions docs/src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const ROUTES = {
baseQuickstart: '/base-ui/getting-started/quickstart/',
materialDocs: '/material-ui/getting-started/',
joyDocs: '/joy-ui/getting-started/',
joyTemplates: '/joy-ui/getting-started/templates/',
joyTutorial: '/joy-ui/getting-started/tutorial/',
systemDocs: '/system/getting-started/',
materialIcons: '/material-ui/material-icons/',
Expand Down

0 comments on commit dbb09be

Please sign in to comment.