Skip to content

Commit

Permalink
style: changed makeStyles structure - Ref gestion-de-projet#2096
Browse files Browse the repository at this point in the history
  • Loading branch information
ManelleG committed May 24, 2023
1 parent 19660f2 commit 5705580
Show file tree
Hide file tree
Showing 107 changed files with 661 additions and 684 deletions.
154 changes: 76 additions & 78 deletions src/components/CreationCohort/ControlPanel/styles.ts
Original file line number Diff line number Diff line change
@@ -1,84 +1,82 @@
import { makeStyles, createStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() =>
createStyles({
rightPanelContainerStyle: {
position: 'fixed',
width: 284,
height: 'calc(100% - 16px)',
top: 0,
right: 0,
margin: 8,
overflow: 'auto'
},
container: {
borderRadius: 12,
border: '1px solid #CCCCCD',
backgroundColor: 'white',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: 8,
padding: 4,
'&:first-child': {
marginTop: 0
}
},
requestExecution: {
marginTop: 12,
marginBottom: 12,
backgroundColor: '#5BC5F2',
borderRadius: '26px',
border: 'none',
height: '42px',
width: '90%',
color: '#FFF',
'&:hover': {
backgroundColor: '#499cbf'
},
'&:disabled': {
opacity: 0.7
}
},
actionButton: {
backgroundColor: '#FFF',
marginBottom: 6,
borderRadius: '18px',
height: '36px',
width: '80%',
border: `2px solid currentColor`,
'&:disabled': {
color: '#ccc',
opacity: 0.7
},
'& > span': {
position: 'relative'
}
},
boldText: {
fontWeight: 700
},
blueText: {
color: '#5BC5F2'
},
redText: {
color: '#fc1847'
},
iconBorder: {
color: 'currentColor'
},
patientTypo: {
margin: '10px'
const useStyles = makeStyles()(() => ({
rightPanelContainerStyle: {
position: 'fixed',
width: 284,
height: 'calc(100% - 16px)',
top: 0,
right: 0,
margin: 8,
overflow: 'auto'
},
container: {
borderRadius: 12,
border: '1px solid #CCCCCD',
backgroundColor: 'white',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: 8,
padding: 4,
'&:first-child': {
marginTop: 0
}
},
requestExecution: {
marginTop: 12,
marginBottom: 12,
backgroundColor: '#5BC5F2',
borderRadius: '26px',
border: 'none',
height: '42px',
width: '90%',
color: '#FFF',
'&:hover': {
backgroundColor: '#499cbf'
},
sidesMargin: {
margin: '0 10px'
'&:disabled': {
opacity: 0.7
}
},
actionButton: {
backgroundColor: '#FFF',
marginBottom: 6,
borderRadius: '18px',
height: '36px',
width: '80%',
border: `2px solid currentColor`,
'&:disabled': {
color: '#ccc',
opacity: 0.7
},
errorAlert: {
marginTop: 8,
borderRadius: 12,
border: '1px solid currentColor'
'& > span': {
position: 'relative'
}
})
)
},
boldText: {
fontWeight: 700
},
blueText: {
color: '#5BC5F2'
},
redText: {
color: '#fc1847'
},
iconBorder: {
color: 'currentColor'
},
patientTypo: {
margin: '10px'
},
sidesMargin: {
margin: '0 10px'
},
errorAlert: {
marginTop: 8,
borderRadius: 12,
border: '1px solid currentColor'
}
}))

export default useStyles
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
const useStyles = makeStyles()((theme: Theme) => ({
root: {
marginBottom: theme.spacing(2)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
const useStyles = makeStyles()((theme: Theme) => ({
cardContent: {
display: 'flex',
padding: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
const useStyles = makeStyles()((theme: Theme) => ({
criteriaItem: {
display: 'flex',
justifyContent: 'space-between',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
inputItem: {
margin: '1em',
width: 'calc(100% - 2em)'
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import makeStyles from '@mui/styles/makeStyles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
const useStyles = makeStyles()((theme: Theme) => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
tabs: {
marginTop: 72,
position: 'absolute',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
tabs: {
marginTop: 72,
position: 'absolute',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
tabs: {
marginTop: 72,
position: 'absolute'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
tabs: {
marginTop: 72,
position: 'absolute'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import makeStyles from '@mui/styles/makeStyles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
tabs: {
marginTop: 72,
position: 'absolute'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
root: {
display: 'flex',
flexDirection: 'column',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
const useStyles = makeStyles()(() => ({
backDrop: {
height: '100vh',
width: '100vw',
Expand Down
Loading

0 comments on commit 5705580

Please sign in to comment.