Skip to content

Commit

Permalink
fix: fix dom error for jtools
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Jul 7, 2024
1 parent 2774bf8 commit 2bd2326
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
28 changes: 15 additions & 13 deletions src/components/Routes/LeftSideBar/LeftSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,21 @@ const LeftSideBar: React.FC<{ open?: boolean }> = (props) => {
</Tooltip>
)}
{zoomed(
<JToolEggWrapper Egg={Egg2}>
<Button
onClick={handleNewRequest}
className={cx(classes.newCohortButton, classes.linkHover, {
[classes.hide]: !open
})}
disabled={maintenanceIsActive}
>
<Typography variant={maintenanceIsActive ? 'h6' : 'h5'}>
{maintenanceIsActive ? 'Nouvelle requête désactivée' : 'Nouvelle requête'}
</Typography>
</Button>
</JToolEggWrapper>
<div className={classes.divNewRequest}>
<JToolEggWrapper Egg={Egg2}>
<Button
onClick={handleNewRequest}
className={cx(classes.newCohortButton, classes.linkHover, {
[classes.hide]: !open
})}
disabled={maintenanceIsActive}
>
<Typography variant={maintenanceIsActive ? 'h6' : 'h5'}>
{maintenanceIsActive ? 'Nouvelle requête désactivée' : 'Nouvelle requête'}
</Typography>
</Button>
</JToolEggWrapper>
</div>
)}
</ListItem>
{!!cohortCreation?.request?.requestId && (
Expand Down
5 changes: 4 additions & 1 deletion src/components/Routes/LeftSideBar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,16 @@ const useStyles = makeStyles()((theme: Theme) => ({
linkHover: {
'&:hover': { cursor: 'pointer', textDecoration: 'None' }
},
divNewRequest: {
width: '100%'
},
newCohortButton: {
backgroundColor: '#5BC5F2',
borderRadius: 25,
border: 'none',
height: 45,
color: '#FFF',
width: '100%',
// width: '100%',
'&:hover': {
backgroundColor: '#499cbf'
}
Expand Down

0 comments on commit 2bd2326

Please sign in to comment.