Skip to content

Commit 1422a5e

Browse files
committed
feat: added mobile responsiveness
1 parent e411d15 commit 1422a5e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/routes/(console)/bottomAlerts.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
3-
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
3+
import {
4+
type BottomModalAlertItem,
5+
showBottomModalAlert,
6+
setMobileSingleAlertLayout
7+
} from '$lib/stores/bottom-alerts';
48

59
import CSVImportDark from '$lib/images/promos/csv-import-placeholder-dark.png';
610
import CSVImportLight from '$lib/images/promos/csv-import-placeholder-light.png';
@@ -23,12 +27,22 @@ if (isCloud) {
2327
cta: {
2428
text: 'Read announcement',
2529
link: () => 'https://appwrite.io/blog/post/announcing-csv-imports',
26-
external: true
30+
external: true,
31+
hideOnClick: true
2732
},
28-
show: true // For testing, will be: isPromoLive('2025-07-01', '15:00', 'Europe/Paris')
33+
show: true
2934
};
3035
if (csvImportPromo.show) {
3136
listOfPromotions.push(csvImportPromo);
37+
setMobileSingleAlertLayout({
38+
title: csvImportPromo.title,
39+
message: csvImportPromo.message,
40+
enabled: true,
41+
cta: {
42+
link: csvImportPromo.cta.link,
43+
external: csvImportPromo.cta.external
44+
}
45+
});
3246
}
3347
}
3448

0 commit comments

Comments
 (0)