Skip to content

Commit a071adc

Browse files
committed
JS-8795: fix
1 parent 32e4eda commit a071adc

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

src/img/icon/void/error.svg

Lines changed: 3 additions & 0 deletions
Loading

src/json/text.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@
543543
"pageMainHistoryCurrent": "Current version",
544544
"pageMainHistoryRestore": "Restore",
545545

546-
"pageMainVoidErrorTitle": "You're all out of spaces",
547-
"pageMainVoidErrorText": "Looks like you've cleaned the house. Ready to start fresh?<br/>Create a new space to get things rolling!",
546+
"pageMainVoidErrorTitle": "You're all out of channels",
547+
"pageMainVoidErrorText": "Looks like you've cleaned the house. Ready to start fresh?<br/>Create a new channel to get things rolling!",
548548
"pageMainVoidSelectText": "No channels opened. Select one on the left panel or create new.",
549549

550550
"pageMainDateEmptyText" : "There is nothing here for this date yet",

src/scss/page/main/void.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121

2222
.buttons { display: flex; gap: 0px 8px; margin: 24px 0px 0px 0px; justify-content: center; }
2323
.buttons:empty { display: none; }
24-
.button { width: 176px; }
2524

2625
&.voidError {
2726
.iconWrapper { width: 72px; height: 72px; margin: 0px auto 10px; }
2827
.iconWrapper {
29-
.icon { background-image: url('~img/icon/popup/confirm/error.svg'); }
28+
.icon { background-image: url('~img/icon/void/error.svg'); }
3029
}
3130
}
3231

src/ts/component/page/main/void.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ const PageMainVoid = observer(forwardRef<I.PageRef, I.PageComponent>((props, ref
3434
case 'error': {
3535
title = translate('pageMainVoidErrorTitle');
3636
text = translate('pageMainVoidErrorText');
37-
button = <Button id="void-button-create-space" onClick={onClick} className="c36" text={translate('commonCreateSpace')} />;
37+
button = (
38+
<Button
39+
id="void-button-create-space"
40+
onClick={onClick}
41+
color="accent"
42+
className="c36"
43+
text={translate('commonCreateSpace')}
44+
/>
45+
);
3846
break;
3947
};
4048
};

0 commit comments

Comments
 (0)