Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykhoyda committed Dec 5, 2023
1 parent a28e412 commit fa72ea3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/components/LoadingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Box, CircularProgress } from '@mui/material'

interface Props {
message: string
dataCy?: string
testId?: string
}

const LoadingBox = ({ message, dataCy }: Props) => (
<MessageBox data-cy={dataCy}>
const LoadingBox = ({ message, testId }: Props) => (
<MessageBox data-cy={`loader-${testId}`}>
<CircularProgress />
<div>{message}</div>
</MessageBox>
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/src/hooks/useDisplayLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useDisplayLoader = () => {
return (
<LoadingBox
message="Initialization..."
dataCy="loader-initialization"
testId="initialization"
/>
)
}
Expand All @@ -25,7 +25,7 @@ export const useDisplayLoader = () => {
return (
<LoadingBox
message={`Connecting to the node at ${selectedNetworkInfo?.rpcUrl}`}
dataCy="loader-rpc-connection"
testId="rpc-connection"
/>
)
}
Expand All @@ -34,7 +34,7 @@ export const useDisplayLoader = () => {
return (
<LoadingBox
message="Loading your accounts..."
dataCy="loader-accounts-connection"
testId="accounts-connection"
/>
)
}
Expand All @@ -43,7 +43,7 @@ export const useDisplayLoader = () => {
return (
<LoadingBox
message="Loading your multisigs..."
dataCy="loader-multisigs"
testId="multisigs"
/>
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/pages/Overview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Overview = ({ className }: Props) => {
return (
<LoadingBox
message="Loading your multisigs..."
dataCy="loader-multisigs"
testId="multisigs"
/>
)
}
Expand Down

0 comments on commit fa72ea3

Please sign in to comment.