Skip to content

Commit

Permalink
Fix import position
Browse files Browse the repository at this point in the history
  • Loading branch information
charlinedev committed Oct 3, 2023
1 parent d4030ee commit 9afa08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/components/WelcomeModal/FirstPhase.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useSnackbar } from 'notistack';
import React from 'react';

import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';
import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
import { Checkbox } from '@mui/material';
import Button from '@mui/material/Button';
import MobileStepper from '@mui/material/MobileStepper';

Check failure on line 5 in src/components/WelcomeModal/FirstPhase.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups
import { useSnackbar } from 'notistack';

Check failure on line 6 in src/components/WelcomeModal/FirstPhase.tsx

View workflow job for this annotation

GitHub Actions / lint

`notistack` import should occur before import of `@mui/icons-material/KeyboardArrowLeft`
import React from 'react';

Check failure on line 7 in src/components/WelcomeModal/FirstPhase.tsx

View workflow job for this annotation

GitHub Actions / lint

`react` import should occur before import of `@mui/icons-material/KeyboardArrowLeft`

import { CGU } from 'src/components/CGU';
import { Flag } from 'src/components/Flag';
Expand Down
3 changes: 1 addition & 2 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Backdrop, Button, CircularProgress, Link, Tooltip } from '@mui/material';

Check failure on line 1 in src/pages/login.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups

Check failure on line 1 in src/pages/login.tsx

View workflow job for this annotation

GitHub Actions / lint

`@mui/material` import should occur after import of `react`
import { useRouter } from 'next/router';
import qs from 'query-string';
import React from 'react';

import { Backdrop, Button, CircularProgress, Link, Tooltip } from '@mui/material';

import { KeepRatio } from '../components/KeepRatio';
import { isRedirectValid } from '../components/accueil/NewHome';
import { UserContext } from 'src/contexts/userContext';
Expand Down

0 comments on commit 9afa08b

Please sign in to comment.