Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGOs92 committed Nov 21, 2023
1 parent c33fb89 commit bfe02ab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ function isEmail(email) {
return regexp.test(String(email).toLowerCase())
}

const AnnuaireServicePublic = React.memo(() => (
const AnnuaireServicePublic = React.memo(function AnnuaireServicePublic () {
<OrderedList>
<ListItem>Rendez vous sur <Link href='https://lannuaire.service-public.fr/'>lannuaire.service-public.fr</Link></ListItem>
<ListItem>Consultez la fiche annuaire de votre commune</ListItem>
<ListItem>Cliquer sur le lien «Demander une mise à jour de cette page», visible en bas de page</ListItem>
</OrderedList>
))
})

function CodeEmail({emailCommune, handleStrategy}) {
const isValidEmail = isEmail(emailCommune)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Pane, Strong, Alert, Text, Heading, PeopleIcon, TimeIcon, LogInIcon, Uno
import FranceConnect from '@/components/habilitation-process/strategy-selection/france-connect'
import CodeEmail from '@/components/habilitation-process/strategy-selection/code-email'

const StrategySelection = React.memo(({franceconnectAuthenticationUrl, emailCommune, handleStrategy}) => {
const StrategySelection = React.memo(function StrategySelection({franceconnectAuthenticationUrl, emailCommune, handleStrategy}) {
const [hovered, setHovered] = useState()

return (
Expand Down
2 changes: 1 addition & 1 deletion components/settings/bal-settings-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const mailHasChanged = (listA, listB) => {
return !isEqual([...listA].sort(), [...listB].sort())
}

const BALSettingsForm = React.memo(({baseLocale}) => {
const BALSettingsForm = React.memo(function BALSettingsForm({baseLocale}) {
const {token, emails, reloadEmails} = useContext(TokenContext)
const {reloadBaseLocale} = useContext(BalDataContext)

Expand Down
2 changes: 1 addition & 1 deletion components/table-row/table-row-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import {Table, Popover, Menu, Position, IconButton, EditIcon, MoreIcon, SendToMapIcon, TrashIcon} from 'evergreen-ui'

const TableRowActions = React.memo(({onSelect, onEdit, onRemove, extra}) => {
const TableRowActions = React.memo(function TableRowActions({onSelect, onEdit, onRemove, extra}) {
return (
<Table.TextCell flex='0 1 1'>
<Popover
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import {Table, Popover, Menu, Position, IconButton, MoreIcon} from 'evergreen-ui'

const TableRowActions = React.memo(({actions}) => {
const TableRowActions = React.memo(function TableRowActions({actions}) {
return (
<Table.TextCell flex='0 1 1'>
<Popover
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "next dev",
"start": "next start",
"lint": "eslint --ext .ts,.tsx .",
"lint": "eslint --ext .js,.ts,.tsx .",
"build": "yarn build-available-flags && next build",
"analyze": "ANALYZE=true next build",
"build-available-flags": "node scripts/build-available-flags",
Expand Down

0 comments on commit bfe02ab

Please sign in to comment.