diff --git a/index.html b/index.html index c78709d..792df36 100644 --- a/index.html +++ b/index.html @@ -192,12 +192,6 @@ loader?.classList.remove("dark") } - diff --git a/src/pages/DelegationsPage/DelegationsPage.tsx b/src/pages/DelegationsPage/DelegationsPage.tsx index 3eb83cb..dd5cb09 100644 --- a/src/pages/DelegationsPage/DelegationsPage.tsx +++ b/src/pages/DelegationsPage/DelegationsPage.tsx @@ -105,7 +105,7 @@ export function MyDelegations() { locked: d.locked || false, unlockedAt: d.unlockedAt || '', }))} - disabled={!worker.delegations.some(d => !d.locked)} + disabled={isLoading} /> diff --git a/src/pages/GatewaysPage/GatewayUnstake.tsx b/src/pages/GatewaysPage/GatewayUnstake.tsx index 58babbe..1d0c590 100644 --- a/src/pages/GatewaysPage/GatewayUnstake.tsx +++ b/src/pages/GatewaysPage/GatewayUnstake.tsx @@ -52,6 +52,7 @@ export function GatewayUnstakeButton({ hidden={disabled} title={ !disabled && + source.locked && (source.unlockedAt ? ( ) : ( diff --git a/src/pages/GatewaysPage/GatewaysPage.tsx b/src/pages/GatewaysPage/GatewaysPage.tsx index 7a92d0d..47997f3 100644 --- a/src/pages/GatewaysPage/GatewaysPage.tsx +++ b/src/pages/GatewaysPage/GatewaysPage.tsx @@ -356,7 +356,11 @@ const GettingStarted = () => { secondary: ( <> Make sure you have enough SQD tokens to get started.{' '} - + How much do I need? @@ -368,7 +372,11 @@ const GettingStarted = () => { <> Lock your SQD tokens to generate Compute Units (CUs), which are used to handle SQD Network queries.{' '} - + How do CUs transfer to SQD? @@ -379,7 +387,11 @@ const GettingStarted = () => { secondary: ( <> Create a Peer ID to identify your portal.{' '} - + How to generate a Peer ID? @@ -440,10 +452,18 @@ const GettingStarted = () => { That's it! Your portal is now ready to run. For more detailed guidance, check out the{' '} - + Portal Documentation {' '} - or contact our team for help. + or{' '} + + contact our team + {' '} + for help. diff --git a/src/pages/WorkersPage/Worker.tsx b/src/pages/WorkersPage/Worker.tsx index 2c86131..f9e6c17 100644 --- a/src/pages/WorkersPage/Worker.tsx +++ b/src/pages/WorkersPage/Worker.tsx @@ -120,7 +120,7 @@ export const Worker = ({ backPath }: { backPath: string }) => { // FIXME: some issue with types unlockedAt: (d as any).unlockedAt, }))} - disabled={isLoading || !delegations?.some(d => !d.locked)} + disabled={isLoading} /> } diff --git a/src/pages/WorkersPage/WorkerUndelegate.tsx b/src/pages/WorkersPage/WorkerUndelegate.tsx index 39cd8a6..4eebd65 100644 --- a/src/pages/WorkersPage/WorkerUndelegate.tsx +++ b/src/pages/WorkersPage/WorkerUndelegate.tsx @@ -83,7 +83,7 @@ export function WorkerUndelegate({ return ( <> } + title={!disabled && isLocked && unlockedAt && } placement="top" > diff --git a/src/pages/WorkersPage/WorkerWithdraw.tsx b/src/pages/WorkersPage/WorkerWithdraw.tsx index c48e9c3..9d32439 100644 --- a/src/pages/WorkersPage/WorkerWithdraw.tsx +++ b/src/pages/WorkersPage/WorkerWithdraw.tsx @@ -43,7 +43,11 @@ export function WorkerWithdrawButton({ return ( <> } + title={ + !disabled && + source.locked && + source.unlockedAt && + } placement="top" >