From 0ab7a533173c158584151007063797afeb6a792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 1 Sep 2024 18:35:39 +0400 Subject: [PATCH] Add LogoutCountdown to HandleEdit --- components/konstitisyon/edit/handle-edit.js | 59 ++++++++++++--------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/components/konstitisyon/edit/handle-edit.js b/components/konstitisyon/edit/handle-edit.js index 77ec929..b6c1309 100644 --- a/components/konstitisyon/edit/handle-edit.js +++ b/components/konstitisyon/edit/handle-edit.js @@ -5,6 +5,7 @@ import {useRef} from 'react' import FormHandler from '../form-handler.js' import {formatFormContent} from '@/lib/format.js' import {createVersion} from '@/lib/directus.js' +import LogoutCountdown from '@/components/session/logout-countdown.js' export default function HandleEdit({ id, @@ -45,37 +46,43 @@ export default function HandleEdit({ if (collection === 'titres') { return ( - + <> + + + ) } if (collection === 'articles') { return ( - + <> + + + ) } }