✨ Block add customers to an anchored folder
This commit is contained in:
parent
e7a6af23be
commit
62f38cc36f
@ -37,11 +37,13 @@ export default class ClientSection extends React.Component<IProps, IState> {
|
|||||||
{this.doesFolderHaveCustomer() ? (
|
{this.doesFolderHaveCustomer() ? (
|
||||||
<>
|
<>
|
||||||
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
||||||
<Link href={navigatePath}>
|
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
||||||
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
<Link href={navigatePath}>
|
||||||
Ajouter un client
|
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
||||||
</Button>
|
Ajouter un client
|
||||||
</Link>
|
</Button>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<div className={classes["no-client"]}>
|
<div className={classes["no-client"]}>
|
||||||
@ -50,11 +52,13 @@ export default class ClientSection extends React.Component<IProps, IState> {
|
|||||||
Aucun client n'est associé au dossier.
|
Aucun client n'est associé au dossier.
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Link href={navigatePath}>
|
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
||||||
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
<Link href={navigatePath}>
|
||||||
Ajouter un client
|
<Button variant={EButtonVariant.LINE} icon={PlusIcon}>
|
||||||
</Button>
|
Ajouter un client
|
||||||
</Link>
|
</Button>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user