diff --git a/src/front/Components/DesignSystem/FolderList/index.tsx b/src/front/Components/DesignSystem/FolderList/index.tsx index eda8afe1..ad6f1de4 100644 --- a/src/front/Components/DesignSystem/FolderList/index.tsx +++ b/src/front/Components/DesignSystem/FolderList/index.tsx @@ -12,9 +12,9 @@ type IState = {}; export default class FolderList extends React.Component { public override render(): JSX.Element { return
- {this.props.folders.map((folder) => { + {this.props.folders.map((folder, key) => { - return ; + return ; })};
; } diff --git a/src/front/Components/DesignSystem/FolderListContainer/classes.module.scss b/src/front/Components/DesignSystem/FolderListContainer/classes.module.scss index f68b3ab0..64dc4cf1 100644 --- a/src/front/Components/DesignSystem/FolderListContainer/classes.module.scss +++ b/src/front/Components/DesignSystem/FolderListContainer/classes.module.scss @@ -1,4 +1,11 @@ @import "@Themes/constants.scss"; .root { + min-height: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + .searchbar{ + padding: 40px 24px 24px 24px; + } } diff --git a/src/front/Components/DesignSystem/FolderListContainer/index.tsx b/src/front/Components/DesignSystem/FolderListContainer/index.tsx index 8b48b6fe..a29b3899 100644 --- a/src/front/Components/DesignSystem/FolderListContainer/index.tsx +++ b/src/front/Components/DesignSystem/FolderListContainer/index.tsx @@ -12,7 +12,6 @@ type IState = { }; export default class FolderListContainer extends React.Component { - //coinstructor public constructor(props: IProps) { super(props); this.state = { @@ -23,13 +22,20 @@ export default class FolderListContainer extends React.Component public override render(): JSX.Element { return
- - - +
+
+ +
+ +
+
+ + +
; } - private filterFolders(folders: IFolder[]) :IFolder[] { + private filterFolders(folders: IFolder[]): IFolder[] { this.setState({ filteredFolders: folders }) return folders; } diff --git a/src/front/Components/DesignSystem/InformationBox/index.tsx b/src/front/Components/DesignSystem/InformationBox/index.tsx index 22d60a53..e8969bbe 100644 --- a/src/front/Components/DesignSystem/InformationBox/index.tsx +++ b/src/front/Components/DesignSystem/InformationBox/index.tsx @@ -15,8 +15,8 @@ type IFolderInformation = { export default class InformationBox extends React.Component { public override render(): JSX.Element { return
- {this.props.informations.map((information) => { - const output =
+ {this.props.informations.map((information, key) => { + const output =
{information.label} {information.value}
; diff --git a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss new file mode 100644 index 00000000..2d1cece8 --- /dev/null +++ b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/classes.module.scss @@ -0,0 +1,14 @@ +@import "@Themes/constants.scss"; + +.root { + .content { + .left-side { + max-width: 389px; + height: calc(100vh - 83px); + } + + .right-side { + width: 100%; + } + } +} \ No newline at end of file diff --git a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx new file mode 100644 index 00000000..2f22ea21 --- /dev/null +++ b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx @@ -0,0 +1,42 @@ +import 'reflect-metadata'; +import React, { ReactNode } from "react"; +import classes from "./classes.module.scss"; +import { IFolder } from "@Front/Components/DesignSystem/SearchBar"; +import { folders } from "@Front/Components/Layouts/DesignSystem/dummyData" +import FolderListContainer from "@Front/Components/DesignSystem/FolderListContainer"; +import Header from "@Front/Components/DesignSystem/Header"; +import Version from "@Front/Components/DesignSystem/Version"; + +type IProps = { + title: string; + children?: ReactNode; +}; +type IState = { + folders: IFolder[]; +}; + +export default class DefaultNotaryDashboard extends React.Component { + public static defaultProps = { + scrollTop: 0, + }; + + public constructor(props: IProps) { + super(props); + this.state = { + folders: folders, + }; + } + + public override render(): JSX.Element { + return ( +
+
+
+
+
{this.props.children}
+
+ +
+ ); + } +} diff --git a/src/front/Components/LayoutTemplates/DefaultTemplate/index.tsx b/src/front/Components/LayoutTemplates/DefaultTemplate/index.tsx index c7ecd3e4..e05d1e15 100644 --- a/src/front/Components/LayoutTemplates/DefaultTemplate/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultTemplate/index.tsx @@ -2,6 +2,7 @@ import React, { ReactNode } from "react"; import classes from "./classes.module.scss"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; +import 'reflect-metadata'; type IProps = { title: string; @@ -21,7 +22,7 @@ export default class DefaultTemplate extends React.Component { public override render(): JSX.Element { return ( <> -
+
{this.props.children}
diff --git a/src/front/Components/Layouts/FolderInfomations/classes.module.scss b/src/front/Components/Layouts/FolderInfomations/classes.module.scss new file mode 100644 index 00000000..53e48bc0 --- /dev/null +++ b/src/front/Components/Layouts/FolderInfomations/classes.module.scss @@ -0,0 +1,16 @@ +.root { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + + .title { + margin: 32px 0; + text-align: center; + } + + .forget-password { + margin-top: 32px; + margin-bottom: 8px; + } +} \ No newline at end of file diff --git a/src/front/Components/Layouts/FolderInfomations/index.tsx b/src/front/Components/Layouts/FolderInfomations/index.tsx new file mode 100644 index 00000000..70306e12 --- /dev/null +++ b/src/front/Components/Layouts/FolderInfomations/index.tsx @@ -0,0 +1,11 @@ +import DefaultNotaryDashboard from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard"; +import BasePage from "../Base"; + +export default class FolderInfomations extends BasePage { + public override render(): JSX.Element { + return ( + + + ); + } +} diff --git a/src/pages/folder-informations.tsx b/src/pages/folder-informations.tsx new file mode 100644 index 00000000..6283ee50 --- /dev/null +++ b/src/pages/folder-informations.tsx @@ -0,0 +1,5 @@ +import FolderInfomations from "@Front/Components/Layouts/FolderInfomations"; + +export default function Route() { + return ; +}