Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Sep 15, 2023
1 parent dbb09be commit 33e3c1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/components/action/More.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ButtonBase, { ButtonBaseProps } from '@mui/material/ButtonBase';
import Typography from '@mui/material/Typography';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';

export default (function More(props: ButtonBaseProps) {
export default (function More<P>(props: ButtonBaseProps & P) {
const ref = React.useRef<null | HTMLButtonElement>(null);
return (
<ButtonBase
Expand Down
4 changes: 3 additions & 1 deletion docs/src/components/productJoyUI/JoyUIComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ShowChartRounded from '@mui/icons-material/ShowChartRounded';
import BarChartRounded from '@mui/icons-material/BarChartRounded';
import SectionHeadline from 'docs/src/components/typography/SectionHeadline';
import Section from 'docs/src/layouts/Section';
import Link from 'docs/src/modules/components/Link';
import Highlighter from 'docs/src/components/action/Highlighter';
import Item, { Group } from 'docs/src/components/action/Item';
import GradientText from 'docs/src/components/typography/GradientText';
Expand All @@ -22,6 +23,7 @@ import SelectUsage from 'docs/data/joy/components/select/SelectUsage';
import ButtonUsage from 'docs/data/joy/components/button/ButtonUsage';
import AlertUsage from 'docs/data/joy/components/alert/AlertUsage';
import Frame from 'docs/src/components/action/Frame';
import ROUTES from 'docs/src/route';

const DEMOS = ['Tabs', 'Radio', 'Menu', 'Input', 'Select', 'Slider', 'Button', 'Alert'] as const;
const icons = {
Expand Down Expand Up @@ -58,7 +60,7 @@ export default function JoyUIComponents() {
<Item icon={React.cloneElement(icons[name])} title={name} />
</Highlighter>
))}
<More />
<More component={Link} href={ROUTES.joyComponents} noLinkStyle />
</Group>
</Grid>
<Grid xs={12} md={6}>
Expand Down
1 change: 1 addition & 0 deletions docs/src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const ROUTES = {
baseComponents: '/base-ui/all-components/',
baseQuickstart: '/base-ui/getting-started/quickstart/',
materialDocs: '/material-ui/getting-started/',
joyComponents: '/joy-ui/react-autocomplete/',
joyDocs: '/joy-ui/getting-started/',
joyTemplates: '/joy-ui/getting-started/templates/',
joyTutorial: '/joy-ui/getting-started/tutorial/',
Expand Down

0 comments on commit 33e3c1b

Please sign in to comment.