Fix LogoutCountdown in HandleCreate
This commit is contained in:
@@ -82,6 +82,7 @@ export default function HandleCreate({
|
|||||||
|
|
||||||
if (collection === 'titres') {
|
if (collection === 'titres') {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<FormHandler
|
<FormHandler
|
||||||
session={session}
|
session={session}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
@@ -98,11 +99,14 @@ export default function HandleCreate({
|
|||||||
dialogText='Écrivez votre titre'
|
dialogText='Écrivez votre titre'
|
||||||
label='titre'
|
label='titre'
|
||||||
/>
|
/>
|
||||||
|
<LogoutCountdown ref={countdownRef} setError={setError} setIsErrorAlertOpen={setIsErrorAlertOpen} />
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collection === 'commentaires') {
|
if (collection === 'commentaires') {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<FormHandler
|
<FormHandler
|
||||||
session={session}
|
session={session}
|
||||||
selectedTitre={selectedTitre}
|
selectedTitre={selectedTitre}
|
||||||
@@ -119,11 +123,14 @@ export default function HandleCreate({
|
|||||||
dialogText='Écrivez votre commentaire'
|
dialogText='Écrivez votre commentaire'
|
||||||
label='commentaire'
|
label='commentaire'
|
||||||
/>
|
/>
|
||||||
|
<LogoutCountdown ref={countdownRef} setError={setError} setIsErrorAlertOpen={setIsErrorAlertOpen} />
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (collection === 'articles') {
|
if (collection === 'articles') {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<FormHandler
|
<FormHandler
|
||||||
session={session}
|
session={session}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
@@ -140,10 +147,10 @@ export default function HandleCreate({
|
|||||||
dialogText='Écrivez votre article'
|
dialogText='Écrivez votre article'
|
||||||
label='article'
|
label='article'
|
||||||
/>
|
/>
|
||||||
|
<LogoutCountdown ref={countdownRef} setError={setError} setIsErrorAlertOpen={setIsErrorAlertOpen} />
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return <LogoutCountdown ref={countdownRef} setError={setError} setIsErrorAlertOpen={setIsErrorAlertOpen} />
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HandleCreate.propTypes = {
|
HandleCreate.propTypes = {
|
||||||
|
|||||||
Reference in New Issue
Block a user