From b949bf149d64b49785c5ab62e2f778a412bbc988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20T=C3=B3rz?= Date: Thu, 3 Oct 2024 14:32:25 +0200 Subject: [PATCH] design update --- .../components/PerformUserActionsPanel.tsx | 65 ++++++++++--------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/packages/frontend/src/view/pages/user/components/PerformUserActionsPanel.tsx b/packages/frontend/src/view/pages/user/components/PerformUserActionsPanel.tsx index f6911ec45..803b155c4 100644 --- a/packages/frontend/src/view/pages/user/components/PerformUserActionsPanel.tsx +++ b/packages/frontend/src/view/pages/user/components/PerformUserActionsPanel.tsx @@ -3,6 +3,7 @@ import { StarkKey } from '@explorer/types' import React from 'react' import { Button } from '../../../components/Button' +import { Card } from '../../../components/Card' interface PerformUserActionsPanelProps { starkKey: StarkKey @@ -20,40 +21,40 @@ export function PerformUserActionsPanel(props: PerformUserActionsPanelProps) { ) { return null } - return ( + return !props.performUserActions ? ( +
+ +

+ Do you want to enable actions for this user? +

+
+

+ You are not connected to this user's wallet. You can enable Escape + Hatch operations and pay their gas cost, but all withdrawals will go + to this user's address, not yours. +

+ +
+
+
+ ) : (
- {!props.performUserActions ? ( - <> -

- Do you want to perform actions for this user? -

-

- You are not connected to this user's wallet. You can enable Escape - Hatch operations and pay their gas cost, but all withdrawals will - go to this user's address, not yours. -

- - - ) : ( - <> -

- You can perform actions for this user -

-

- You are not connected to this user's wallet. You can still perform - Escape Hatch operations for this user (and pay their gas costs) - but all withdrawals will go to this user's address, not yours. -

- - )} +

+ You have enabled performing actions for this user +

+

+ You are not connected to this user's wallet. You can still perform + Escape Hatch operations for this user (and pay their gas costs) but + all withdrawals will go to this user's address, not yours. +

)