Skip to content

Commit

Permalink
fix: renamed function from a11yProps to allyProps
Browse files Browse the repository at this point in the history
I found the easter egg Matt left us to find. Haha

Signed-off-by: MarcGoekce <[email protected]>
  • Loading branch information
MarcGoekce authored Nov 25, 2024
1 parent 2eb8e42 commit b0c799f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/data/material/components/tabs/BasicTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CustomTabPanel.propTypes = {
value: PropTypes.number.isRequired,
};

function a11yProps(index) {
function allyProps(index) {
return {
id: `simple-tab-${index}`,
'aria-controls': `simple-tabpanel-${index}`,
Expand All @@ -44,9 +44,9 @@ export default function BasicTabs() {
<Box sx={{ width: '100%' }}>
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<Tabs value={value} onChange={handleChange} aria-label="basic tabs example">
<Tab label="Item One" {...a11yProps(0)} />
<Tab label="Item Two" {...a11yProps(1)} />
<Tab label="Item Three" {...a11yProps(2)} />
<Tab label="Item One" {...allyProps(0)} />
<Tab label="Item Two" {...allyProps(1)} />
<Tab label="Item Three" {...allyProps(2)} />
</Tabs>
</Box>
<CustomTabPanel value={value} index={0}>
Expand Down

0 comments on commit b0c799f

Please sign in to comment.