Fix AppBar display
This commit is contained in:
@@ -19,13 +19,12 @@ const classes = {
|
|||||||
root: `${PREFIX}-root`
|
root: `${PREFIX}-root`
|
||||||
}
|
}
|
||||||
|
|
||||||
const Root = styled('div')((
|
const Appdiv = styled('div')((
|
||||||
{
|
{
|
||||||
theme
|
theme
|
||||||
}
|
}
|
||||||
) => ({
|
) => ({
|
||||||
[`& .${classes.root}`]: {
|
[`& .${classes.root}`]: {
|
||||||
marginBottom: 50,
|
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundColor: theme.palette.background.paper
|
backgroundColor: theme.palette.background.paper
|
||||||
@@ -50,7 +49,7 @@ function TabPanel(props) {
|
|||||||
const {children, value, index, ...other} = props
|
const {children, value, index, ...other} = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Root
|
<div
|
||||||
role='tabpanel'
|
role='tabpanel'
|
||||||
hidden={value !== index}
|
hidden={value !== index}
|
||||||
id={`scrollable-force-tabpanel-${index}`}
|
id={`scrollable-force-tabpanel-${index}`}
|
||||||
@@ -62,7 +61,7 @@ function TabPanel(props) {
|
|||||||
<Typography component='div'>{children}</Typography>
|
<Typography component='div'>{children}</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</Root>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,17 +92,18 @@ export default function Navigasyon({selectedTab}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Appdiv>
|
||||||
<div className={classes.root}>
|
<div className={classes.root}>
|
||||||
<AppBar style={{zIndex: 1}} position='fixed' color='default'>
|
<AppBar style={{zIndex: 1}} position='fixed' color='default'>
|
||||||
<Tabs
|
<Tabs
|
||||||
|
centered
|
||||||
value={selectedTab}
|
value={selectedTab}
|
||||||
variant='fullWidth'
|
variant='fullWidth'
|
||||||
scrollButtons
|
|
||||||
indicatorColor='primary'
|
indicatorColor='primary'
|
||||||
textColor='primary'
|
textColor='primary'
|
||||||
aria-label='scrollable force tabs example'
|
aria-label='tabs menu'
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
allowScrollButtonsMobile>
|
>
|
||||||
<Tab label='Kay-la' icon={<HomeIcon style={{fontSize: 30}} />} {...a11yProps(0)} />
|
<Tab label='Kay-la' icon={<HomeIcon style={{fontSize: 30}} />} {...a11yProps(0)} />
|
||||||
<Tab label='Tèks' icon={<MenuBookIcon style={{fontSize: 30}} />} {...a11yProps(1)} />
|
<Tab label='Tèks' icon={<MenuBookIcon style={{fontSize: 30}} />} {...a11yProps(1)} />
|
||||||
<Tab label='Awtis' icon={<RecordVoiceOverIcon style={{fontSize: 30}} />} {...a11yProps(2)} />
|
<Tab label='Awtis' icon={<RecordVoiceOverIcon style={{fontSize: 30}} />} {...a11yProps(2)} />
|
||||||
@@ -115,7 +115,8 @@ export default function Navigasyon({selectedTab}) {
|
|||||||
<TabPanel value={value} index={2} />
|
<TabPanel value={value} index={2} />
|
||||||
<TabPanel value={value} index={3} />
|
<TabPanel value={value} index={3} />
|
||||||
</div>
|
</div>
|
||||||
);
|
</Appdiv>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Navigasyon.propTypes = {
|
Navigasyon.propTypes = {
|
||||||
|
|||||||
Reference in New Issue
Block a user