Skip to content

Commit

Permalink
style: added tss package and changed imports to makeStyles - Ref gest…
Browse files Browse the repository at this point in the history
…ion-de-projet#2096
  • Loading branch information
ManelleG committed May 24, 2023
1 parent ccbf7bb commit f30e997
Show file tree
Hide file tree
Showing 102 changed files with 111 additions and 102 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"redux-devtools-extension": "^2.13.9",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-state-sync": "^3.1.4"
"redux-state-sync": "^3.1.4",
"tss-react": "^4.8.4"
},
"resolutions": {
"nth-check": "^2.0.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

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

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

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

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

const useStyles = makeStyles(() => ({
inputItem: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({}))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const useStyles = makeStyles(() => ({
backDrop: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
backDrop: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

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

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

const useStyles = makeStyles(() => ({
inputContainer: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
input: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreationCohort/DiagramView/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreationCohort/JsonView/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

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

const useStyles = makeStyles(() => ({
inputContainer: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
inputContainer: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CreationCohort/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
grid: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/ExportModal/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/PatientList/components/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Preview/Charts/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
tooltip: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard/Preview/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorView/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { smallDrawerWidth, largeDrawerWidth } from 'components/Routes/LeftSideBar/LeftSideBar'

export default makeStyles((theme: any) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/BiologyFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/CohortsFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/DocumentFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/MedicationFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/PMSIFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/PatientFilters/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/SortDialog/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inputs/InputAgeRange/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
ageFilter: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inputs/InputDate/styles.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
formControl: { margin: '1em' },
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inputs/InputNumber/styles.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
formControl: { margin: '1em' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
dialog: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
10 changes: 9 additions & 1 deletion src/components/Inputs/PatientSearchBar/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand All @@ -20,6 +20,14 @@ const useStyles = makeStyles((theme: Theme) => ({
input: {
marginLeft: theme.spacing(1),
flex: 1
},
select: {
marginRight: 4,
borderRadius: 25,
backgroundColor: '#FFF',
'& .MuiSelect-select': {
borderRadius: 25
}
}
}))

Expand Down
2 changes: 1 addition & 1 deletion src/components/Inputs/ScopeSearchBar/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'
import { Theme } from '@mui/material/styles'

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/MasterChips/styles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
chips: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
deleteButton: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
deleteButton: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MyProjects/Modals/ModalEditCohort/styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
inputContainer: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles } from '@mui/styles'
import { makeStyles } from 'tss-react/mui'

const useStyles = makeStyles(() => ({
inputContainer: {
Expand Down
Loading

0 comments on commit f30e997

Please sign in to comment.