mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-10 15:05:01 +00:00
refactor: suppression d'une prop redondante
This commit is contained in:
parent
c767625fba
commit
85229bc9c9
3 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,7 @@ export default function RéductionMois({
|
|||
formatOptions={{
|
||||
maximumFractionDigits: 2,
|
||||
}}
|
||||
displaySuggestions={false}
|
||||
showSuggestions={false}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -21,11 +21,10 @@ export default function NumberInput({
|
|||
unit,
|
||||
formatOptions,
|
||||
displayedUnit,
|
||||
displaySuggestions = true,
|
||||
showSuggestions,
|
||||
...fieldProps
|
||||
}: InputProps & {
|
||||
unit?: Unit
|
||||
displaySuggestions?: boolean
|
||||
}) {
|
||||
const unité = serializeUnit(unit)
|
||||
const [currentValue, setCurrentValue] = useState<number | undefined>(
|
||||
|
@ -93,7 +92,7 @@ export default function NumberInput({
|
|||
}
|
||||
value={currentValue}
|
||||
/>
|
||||
{displaySuggestions && (
|
||||
{showSuggestions && (
|
||||
<InputSuggestions
|
||||
className="print-hidden"
|
||||
suggestions={suggestions}
|
||||
|
|
|
@ -103,6 +103,7 @@ export default function RuleInput<Names extends string = DottedName>({
|
|||
title: rule.title,
|
||||
description: rule.rawNode.description,
|
||||
question: rule.rawNode.question,
|
||||
showSuggestions,
|
||||
suggestions: showSuggestions ? rule.suggestions : {},
|
||||
engine: engineValue,
|
||||
...props,
|
||||
|
|
Loading…
Add table
Reference in a new issue