Skip to content

Commit

Permalink
correct wording
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Jun 11, 2024
1 parent f9b07f6 commit f11d11d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ StatusBadge.propTypes = {
error: PropTypes.string,
}

function MoissoneurHarvestItem({startedAt, status, error, updateStatus, updateRejectionReason, fileId}) {
function MoissonneurHarvestItem({startedAt, status, error, updateStatus, updateRejectionReason, fileId}) {
return (
<tr>
<td className='fr-col fr-my-1v'>
Expand All @@ -50,7 +50,7 @@ function MoissoneurHarvestItem({startedAt, status, error, updateStatus, updateRe
)
}

MoissoneurHarvestItem.propTypes = {
MoissonneurHarvestItem.propTypes = {
startedAt: PropTypes.string.isRequired,
status: PropTypes.string.isRequired,
error: PropTypes.string,
Expand All @@ -59,4 +59,4 @@ MoissoneurHarvestItem.propTypes = {
fileId: PropTypes.string,
}

export default MoissoneurHarvestItem
export default MoissonneurHarvestItem
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types'
import {useEffect, useState} from 'react'

import MoissoneurHarvestItem from './harvest-item'
import MoissonneurHarvestItem from './harvest-item'
import {getSourceHarvests} from '@/lib/moissonneur-bal'
import Pagination from 'react-js-pagination'
import Tooltip from '@/components/base-adresse-nationale/tooltip'
Expand Down Expand Up @@ -63,7 +63,7 @@ function MoissonneurHarvestList({sourceId}) {

<tbody>
{harvests.map(harvest => (
<MoissoneurHarvestItem key={harvest._id} {...harvest} />
<MoissonneurHarvestItem key={harvest._id} {...harvest} />
))}
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PublicationStatusBadge.propTypes = {
errorMessage: PropTypes.string,
}

function MoissoneurRevisionItem({codeCommune, _created, nbRows, nbRowsWithErrors, updateStatus, updateRejectionReason, publication, fileId}) {
function MoissonneurRevisionItem({codeCommune, _created, nbRows, nbRowsWithErrors, updateStatus, updateRejectionReason, publication, fileId}) {
return (
<tr>
<td className='fr-col fr-my-1v'>
Expand All @@ -89,7 +89,7 @@ function MoissoneurRevisionItem({codeCommune, _created, nbRows, nbRowsWithErrors
)
}

MoissoneurRevisionItem.propTypes = {
MoissonneurRevisionItem.propTypes = {
codeCommune: PropTypes.string.isRequired,
_created: PropTypes.string.isRequired,
nbRows: PropTypes.number.isRequired,
Expand All @@ -100,4 +100,4 @@ MoissoneurRevisionItem.propTypes = {
fileId: PropTypes.string.isRequired,
}

export default MoissoneurRevisionItem
export default MoissonneurRevisionItem
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types'

import {useEffect, useState} from 'react'
import {getSourceRevisions} from '@/lib/moissonneur-bal'
import MoissoneurRevisionItem from './revision-item'
import MoissonneurRevisionItem from './revision-item'
import Tooltip from '@/components/base-adresse-nationale/tooltip'

function MoissonneurRevisionsList({sourceId}) {
Expand Down Expand Up @@ -55,7 +55,7 @@ function MoissonneurRevisionsList({sourceId}) {

<tbody>
{revisions.map(revision => (
<MoissoneurRevisionItem key={revision._id} {...revision} />
<MoissonneurRevisionItem key={revision._id} {...revision} />
))}
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Badge from '@codegouvfr/react-dsfr/Badge'
import {formatDate} from '@/lib/date'
import Button from '@/components/button'

function MoissoneurSourceItem({title, enabled, _deleted, _updated, isSelected, onSelect}) {
function MoissonneurSourceItem({title, enabled, _deleted, _updated, isSelected, onSelect}) {
return (
<tr>
<td className='fr-col'>{title}</td>
Expand Down Expand Up @@ -33,7 +33,7 @@ function MoissoneurSourceItem({title, enabled, _deleted, _updated, isSelected, o
)
}

MoissoneurSourceItem.propTypes = {
MoissonneurSourceItem.propTypes = {
title: PropTypes.string.isRequired,
enabled: PropTypes.bool.isRequired,
_deleted: PropTypes.bool.isRequired,
Expand All @@ -42,4 +42,4 @@ MoissoneurSourceItem.propTypes = {
onSelect: PropTypes.func.isRequired,
}

export default MoissoneurSourceItem
export default MoissonneurSourceItem
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types'

import MoissoneurSourceItem from './source-item'
import MoissonneurSourceItem from './source-item'

function MoissonneurSourcesList({sources, sourceSelected, setSourceSelected}) {
return (
Expand All @@ -18,7 +18,7 @@ function MoissonneurSourcesList({sources, sourceSelected, setSourceSelected}) {

<tbody>
{sources.map(source => (
<MoissoneurSourceItem key={source._id} {...source} isSelected={sourceSelected === source._id} onSelect={() => setSourceSelected(source._id)} />
<MoissonneurSourceItem key={source._id} {...source} isSelected={sourceSelected === source._id} onSelect={() => setSourceSelected(source._id)} />
))}
</tbody>
</table>
Expand Down

0 comments on commit f11d11d

Please sign in to comment.