404 Page not found
This commit is contained in:
parent
39dd0ea84d
commit
baea1dadbd
@ -13,8 +13,8 @@ import { ActionMeta, MultiValue } from "react-select";
|
|||||||
|
|
||||||
import BasePage from "../../Base";
|
import BasePage from "../../Base";
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import { Deed, DeedType, OfficeFolder, OfficeFolderHasCustomer, OfficeFolderHasStakeholder } from "le-coffre-resources/dist/Notary";
|
import { Deed, DeedType, OfficeFolder, OfficeFolderHasStakeholder } from "le-coffre-resources/dist/Notary";
|
||||||
import DeedTypes from "@Front/Api/LeCoffreApi/SuperAdmin/DeedTypes/DeedTypes";
|
// import DeedTypes from "@Front/Api/LeCoffreApi/SuperAdmin/DeedTypes/DeedTypes";
|
||||||
import Users from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users";
|
import Users from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users";
|
||||||
import User from "le-coffre-resources/dist/Notary";
|
import User from "le-coffre-resources/dist/Notary";
|
||||||
|
|
||||||
@ -83,13 +83,8 @@ export default class CreateFolder extends BasePage<IProps, IState> {
|
|||||||
type="number"
|
type="number"
|
||||||
onChange={this.onFolderNumberChange}
|
onChange={this.onFolderNumberChange}
|
||||||
/>
|
/>
|
||||||
<<<<<<< Updated upstream
|
|
||||||
<InputField name="entitled" fakeplaceholder="Intitulé" onChange={this.onEntitleChange} />
|
|
||||||
<Select options={this.actsOptions} placeholder={"Type d’acte"} onChange={this.onActTypeChange} />
|
|
||||||
=======
|
|
||||||
<InputField name="name" fakeplaceholder="Intitulé" onChange={this.onEntitleChange} />
|
<InputField name="name" fakeplaceholder="Intitulé" onChange={this.onEntitleChange} />
|
||||||
<Select options={this.state.deedTypesOptions} placeholder={"Type d’acte"} onChange={this.onActTypeChange} />
|
<Select options={this.state.deedTypesOptions} placeholder={"Type d’acte"} onChange={this.onActTypeChange} />
|
||||||
>>>>>>> Stashed changes
|
|
||||||
<InputField
|
<InputField
|
||||||
name="description"
|
name="description"
|
||||||
fakeplaceholder="Note du dossier"
|
fakeplaceholder="Note du dossier"
|
||||||
@ -132,14 +127,14 @@ export default class CreateFolder extends BasePage<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override async componentDidMount() {
|
public override async componentDidMount() {
|
||||||
const deedTypes = await DeedTypes.getInstance().get({ q: {} });
|
// const deedTypes = await DeedTypes.getInstance().get({ q: {} });
|
||||||
// TODO SETUP userStore and get the user's office membership -> Replace IwJ70M471c by the user's office membership uid
|
// TODO SETUP userStore and get the user's office membership -> Replace IwJ70M471c by the user's office membership uid
|
||||||
const collaborators = await Users.getInstance().get({
|
const collaborators = await Users.getInstance().get({
|
||||||
q: { where: { office_membership: { uid: "IwJ70M471c" } }, include: { contact: true } },
|
q: { where: { office_membership: { uid: "IwJ70M471c" } }, include: { contact: true } },
|
||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
deedTypes,
|
// deedTypes,
|
||||||
deedTypesOptions: this.mapDeedOptions(deedTypes),
|
// deedTypesOptions: this.mapDeedOptions(deedTypes),
|
||||||
collaborators,
|
collaborators,
|
||||||
collaboratorsOptions: this.mapUsersOptions(collaborators),
|
collaboratorsOptions: this.mapUsersOptions(collaborators),
|
||||||
});
|
});
|
||||||
|
@ -2,17 +2,20 @@
|
|||||||
@import "@Themes/animation.scss";
|
@import "@Themes/animation.scss";
|
||||||
|
|
||||||
.root {
|
.root {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
.content {
|
||||||
flex-direction: column;
|
margin: auto;
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin: 32px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media(max-width: $screen-s) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
}
|
||||||
.buttons-container{
|
|
||||||
margin-top: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media(max-width: $screen-s){
|
|
||||||
margin-top: 32px;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,25 +1,28 @@
|
|||||||
import Button from "@Front/Components/DesignSystem/Button";
|
import Button from "@Front/Components/DesignSystem/Button";
|
||||||
import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography";
|
import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography";
|
||||||
import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate";
|
|
||||||
import Module from "@Front/Config/Module";
|
import Module from "@Front/Config/Module";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import RightImage from "@Assets/images/create-folder/right-image.png";
|
||||||
import BasePage from "../Base";
|
import BasePage from "../Base";
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
|
import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage";
|
||||||
|
|
||||||
export default class PageNotFound extends BasePage {
|
export default class PageNotFound extends BasePage {
|
||||||
public override render(): JSX.Element {
|
public override render(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<DefaultTemplate title={"Project Not Found"}>
|
<DefaultDoubleSidePage title={"Project Not Found"} image={RightImage}>
|
||||||
<div className={classes["root"]}>
|
<div className={classes["root"]}>
|
||||||
<Typography typo={ITypo.H3}>Il n'y a rien ici, la page que vous avez demandée n'existe pas</Typography>
|
<div className={classes["content"]}>
|
||||||
<div className={classes["buttons-container"]}>
|
<Typography typo={ITypo.H1}>Erreur 404</Typography>
|
||||||
|
<Typography typo={ITypo.P_18} className={classes["text"]}>
|
||||||
|
La page que vous recherchez semble introuvable.
|
||||||
|
</Typography>
|
||||||
<Link href={Module.getInstance().get().modules.pages.Home.props.path}>
|
<Link href={Module.getInstance().get().modules.pages.Home.props.path}>
|
||||||
<Button>Retourner à la page d'accueil</Button>
|
<Button>Retour à l’accueil</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</DefaultTemplate>
|
</DefaultDoubleSidePage>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user