-
Notifications
You must be signed in to change notification settings - Fork 6
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
af7f192
commit b2ea7f1
Showing
11 changed files
with
524 additions
and
408 deletions.
There are no files selected for viewing
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,23 @@ | ||
import { Box } from '@mui/material' | ||
import React, { FC } from 'react' | ||
|
||
interface Props { | ||
children?: React.ReactNode | ||
index: number | ||
value: number | ||
} | ||
|
||
const TabPanel: FC<Props> = ({ children, index, value }) => { | ||
return ( | ||
<div | ||
aria-labelledby={`simple-tab-${index}`} | ||
hidden={value !== index} | ||
id={`simple-tabpanel-${index}`} | ||
role="tabpanel" | ||
> | ||
{value === index && <Box sx={{ py: 2 }}>{children}</Box>} | ||
</div> | ||
) | ||
} | ||
|
||
export default TabPanel |
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.