Skip to content

Commit

Permalink
fix: missing panels (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
pom421 authored Jan 5, 2022
1 parent fc7c83e commit 2a4a49c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/ds/InfoBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface InfoBlocProps {
}

const InfoBlock: FunctionComponent<InfoBlocProps> = ({ type = "info", title, text, closeButton = false }) => {
const [isBlockVisible, setIsBlockVisible] = useBoolean()
const [isBlockVisible, setIsBlockVisible] = useBoolean(true)

if (isBlockVisible) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/views/Declaration/DeclarationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function DeclarationForm({
initialValuesEqual={() => true}
>
{({ handleSubmit, values, hasValidationErrors, errors, submitFailed }) => (
<form onSubmit={handleSubmit} css={styles.container}>
<form onSubmit={handleSubmit} css={styles.container} style={{ marginTop: 20 }}>
<FormAutoSave saveForm={saveForm} />

{noteIndex !== undefined && noteIndex < 75 && (
Expand Down
4 changes: 3 additions & 1 deletion src/views/Recapitulatif/RecapitulatifIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const RecapitulatifIndex: FunctionComponent<RecapitulatifIndexProps> = ({
title="Index égalité femmes-hommes"
text={
<React.Fragment>
<Text>{`Votre résultat total est <strong>${noteIndex}/100</strong>.`}</Text>
<Text>
Votre résultat total est <strong>{noteIndex}/100</strong>.
</Text>
<Text
mt={1}
fontStyle="italic"
Expand Down

0 comments on commit 2a4a49c

Please sign in to comment.