Skip to content

Commit b0334ed

Browse files
authored
minifront: sync dialog text (#2347)
1 parent a3d3efb commit b0334ed

File tree

1 file changed

+15
-12
lines changed
  • apps/minifront/src/components/syncing-dialog

1 file changed

+15
-12
lines changed

apps/minifront/src/components/syncing-dialog/index.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,28 @@ export const SyncingDialog = () => {
6262
}
6363
}
6464

65-
let detail = 'This dialog should not be visible.';
65+
let subheading = 'This dialog should not be visible.';
6666
if (!didClose) {
6767
if (isUnavailable) {
68-
detail = 'Connection unavailable.';
68+
subheading = 'Connection unavailable.';
6969
} else if (streamError) {
70-
detail = 'Retrying...';
70+
subheading = 'Retrying...';
7171
} else if (!initialStatus.data) {
72-
detail = 'Querying local block height...';
72+
subheading = 'Querying local block height...';
7373
} else if (!streamStatus.data) {
74-
detail = 'Fetching remote block height...';
74+
subheading = 'Fetching remote block height...';
7575
} else if (!isSynced) {
76-
detail = 'Decrypting block stream...';
76+
subheading = 'Decrypting block stream...';
7777
} else {
78-
detail = 'Unknown state.';
78+
subheading = 'Unknown state.';
7979
}
8080
}
8181

82-
const instructions = isUnavailable
83-
? 'Please reload the page.'
84-
: 'You can click away, but your data may not be current.';
82+
const text = 'All of your private data is local.';
8583

86-
return { title, error, detail, instructions };
84+
const instructions = isUnavailable ? 'Please reload the page.' : 'You can leave this tab open';
85+
86+
return { title, error, subheading, text, instructions };
8787
}, [didClose, initialStatus.data, isSynced, isUnavailable, streamStatus.data, streamError]);
8888

8989
// TODO: 'zIndex' is deprecated — update to use zIndex on buttons instead
@@ -102,7 +102,10 @@ export const SyncingDialog = () => {
102102

103103
<div className='text-center'>
104104
<Text body as='p'>
105-
{dialogText.detail}
105+
{dialogText.subheading}
106+
</Text>
107+
<Text small as='p'>
108+
{dialogText.text}
106109
</Text>
107110
<Text small as='p'>
108111
{dialogText.instructions}

0 commit comments

Comments
 (0)