-
-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4928dde
commit 7cfa877
Showing
66 changed files
with
1,556 additions
and
109 deletions.
There are no files selected for viewing
57 changes: 0 additions & 57 deletions
57
material-react-table-docs/components/mdx/LocaleExamples.tsx
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
material-react-table-docs/example-groups/LocaleExamples.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React, { Suspense, useState } from 'react'; | ||
import dynamic from 'next/dynamic'; | ||
import { Box, Skeleton, Tab, Tabs } from '@mui/material'; | ||
|
||
//Locale Examples | ||
const CS_Table = dynamic(() => import('../examples/localization-i18n-cs'), { | ||
suspense: true, | ||
}); | ||
const DE_Table = dynamic(() => import('../examples/localization-i18n-de'), { | ||
suspense: true, | ||
}); | ||
const ES_Table = dynamic(() => import('../examples/localization-i18n-es'), { | ||
suspense: true, | ||
}); | ||
const PL_Table = dynamic(() => import('../examples/localization-i18n-pl'), { | ||
suspense: true, | ||
}); | ||
const PT_BR_Table = dynamic( | ||
() => import('../examples/localization-i18n-pt-BR'), | ||
{ | ||
suspense: true, | ||
}, | ||
); | ||
|
||
const supportedLocales = ['cs', 'de', 'es', 'pl', 'pt-BR']; | ||
|
||
const LocaleExamples = () => { | ||
const [currentLocale, setCurrentLocale] = useState('es'); | ||
|
||
return ( | ||
<> | ||
<Box sx={{ width: '100%' }}> | ||
<Tabs | ||
textColor="secondary" | ||
indicatorColor="secondary" | ||
onChange={(_event, newValue: string) => setCurrentLocale(newValue)} | ||
scrollButtons="auto" | ||
value={currentLocale} | ||
variant="scrollable" | ||
> | ||
{supportedLocales.map((locale) => ( | ||
<Tab label={locale} key={locale} value={locale} /> | ||
))} | ||
</Tabs> | ||
</Box> | ||
<div style={{ minHeight: '1500px' }} lang={currentLocale}> | ||
<Suspense | ||
fallback={<Skeleton animation="wave" height="600px" width="100%" />} | ||
> | ||
{currentLocale === 'cs' && <CS_Table />} | ||
{currentLocale === 'de' && <DE_Table />} | ||
{currentLocale === 'es' && <ES_Table />} | ||
{currentLocale === 'pl' && <PL_Table />} | ||
{currentLocale === 'pt-BR' && <PT_BR_Table />} | ||
</Suspense> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default LocaleExamples; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7cfa877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
material-react-table-storybook – ./
material-react-table-storybook.vercel.app
material-react-table-storybook-kevinvandy.vercel.app
material-react-table.dev
material-react-table-storybook-git-main-kevinvandy.vercel.app
www.material-react-table.dev
7cfa877
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
material-react-table – ./material-react-table-docs
material-react-table-git-main-kevinvandy.vercel.app
material-react-table.vercel.app
www.material-react-table.com
material-react-table-kevinvandy.vercel.app
material-react-table.com