diff --git a/src/front/Components/DesignSystem/FolderListContainer/index.tsx b/src/front/Components/DesignSystem/FolderListContainer/index.tsx index 77f54d7d..11753672 100644 --- a/src/front/Components/DesignSystem/FolderListContainer/index.tsx +++ b/src/front/Components/DesignSystem/FolderListContainer/index.tsx @@ -19,6 +19,7 @@ type IProps = { type IPropsClass = IProps & { router: NextRouter; + selectedFolder: string; }; type IState = { @@ -85,7 +86,11 @@ class FolderListContainerClass extends React.Component { }); return [...pendingFolders, ...otherFolders].map((folder) => { - return { id: folder.uid!, name: folder.folder_number! + " - " + folder.name!, selected: false }; + return { + id: folder.uid!, + name: folder.folder_number! + " - " + folder.name!, + selected: this.props.selectedFolder === folder.uid, + }; }); } private onSelectedFolder(block: IBlock) { @@ -118,5 +123,6 @@ class FolderListContainerClass extends React.Component { export default function FolderListContainer(props: IProps) { const router = useRouter(); - return ; + const { folderUid } = router.query; + return ; } diff --git a/src/front/Components/Layouts/Login/index.tsx b/src/front/Components/Layouts/Login/index.tsx index 3145b579..e2b19c15 100644 --- a/src/front/Components/Layouts/Login/index.tsx +++ b/src/front/Components/Layouts/Login/index.tsx @@ -19,7 +19,10 @@ export default function Login() { const redirectUserOnConnection = useCallback(() => { async function getUser() { try { + // Super admin await UserStore.instance.connect("jelkvelknvlkn"); + // Notaire + // await UserStore.instance.connect("ljfeflecnmd"); await JwtService.getInstance().checkJwt(); router.push(Module.getInstance().get().modules.pages.Folder.props.path); } catch (e) {