Skip to content

Commit 206f473

Browse files
authored
Fix: Update error message to default error text in all error cases and adjust default icon size
1 parent 4a73f30 commit 206f473

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

src/components/SirenPanel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ const SirenPanel: FC<SirenPanelProps> = ({
238238
resetRealTimeFetch(isRefresh, data);
239239
} else {
240240
setEndReached(true);
241-
if (response && "error" in response) setError(response.error?.Message ?? "");
242-
else setError(ERROR_TEXT);
241+
setError(ERROR_TEXT);
243242
}
244243
} catch (error: any) {
245244
setIsLoading(false);

src/utils/defaultStyles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ const defaultStyles = {
3838
textSize: 10,
3939
},
4040
deleteIcon:{
41-
size: 14
41+
size: 16
4242
},
4343
timerIcon:{
44-
size: 14
44+
size: 12
4545
},
4646
clearAllIcon:{
47-
size: 14
47+
size: 18
4848
}
4949
}
5050

tests/components/__snapshots__/card.spec.tsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ exports[`matches snapshot 1`] = `
3636
>
3737
<svg
3838
fill="none"
39-
height="14"
39+
height="12"
4040
viewBox="0 0 14 13"
41-
width="14"
41+
width="12"
4242
xmlns="http://www.w3.org/2000/svg"
4343
>
4444
<path
@@ -63,9 +63,9 @@ exports[`matches snapshot 1`] = `
6363
>
6464
<svg
6565
fill="none"
66-
height="14"
66+
height="16"
6767
viewBox="0 0 20 20"
68-
width="14"
68+
width="16"
6969
xmlns="http://www.w3.org/2000/svg"
7070
>
7171
<path

tests/components/__snapshots__/header.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ exports[`matches snapshot 1`] = `
2121
>
2222
<svg
2323
fill="none"
24-
height="14"
24+
height="18"
2525
viewBox="0 0 24 24"
26-
width="14"
26+
width="18"
2727
xmlns="http://www.w3.org/2000/svg"
2828
>
2929
<path

tests/components/__snapshots__/sirenPanel.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ exports[`matches snapshot 1`] = `
2727
>
2828
<svg
2929
fill="none"
30-
height="14"
30+
height="18"
3131
viewBox="0 0 24 24"
32-
width="14"
32+
width="18"
3333
xmlns="http://www.w3.org/2000/svg"
3434
>
3535
<path

0 commit comments

Comments
 (0)