Skip to content

Commit

Permalink
fix(backoffice-v2): fixed bug caused by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy committed Dec 28, 2024
1 parent 3bb804a commit ea0e639
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,36 +213,35 @@ export const useManageUbosBlock = ({
}
content={
<div className={'flex flex-col justify-between space-y-4'}>
{!create.enabled ||
(!isAddingUbo && (
<div className={'flex flex-col gap-4'}>
<h2 className={'text-lg font-semibold'}>Manage UBOs</h2>
<UrlDataTable
data={ubos}
columns={columns}
options={{
enableSorting: false,
getRowId: row => row.id,
}}
props={{
scroll: {
className: '[&>div]:max-h-[73vh]',
},
}}
/>
{create.enabled && (
<Button
className={
'ms-auto aria-disabled:pointer-events-none aria-disabled:opacity-50'
}
onClick={toggleOnIsAddingUbo}
aria-disabled={!caseState.writeEnabled}
>
Add UBO
</Button>
)}
</div>
))}
{(!create.enabled || !isAddingUbo) && (
<div className={'flex flex-col gap-4'}>
<h2 className={'text-lg font-semibold'}>Manage UBOs</h2>
<UrlDataTable
data={ubos}
columns={columns}
options={{
enableSorting: false,
getRowId: row => row.id,
}}
props={{
scroll: {
className: '[&>div]:max-h-[73vh]',
},
}}
/>
{create.enabled && (
<Button
className={
'ms-auto aria-disabled:pointer-events-none aria-disabled:opacity-50'
}
onClick={toggleOnIsAddingUbo}
aria-disabled={!caseState.writeEnabled}
>
Add UBO
</Button>
)}
</div>
)}
{create.enabled && isAddingUbo && (
<>
<Button
Expand Down
2 changes: 1 addition & 1 deletion services/workflows-service/prisma/data-migrations

0 comments on commit ea0e639

Please sign in to comment.