mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
ran: formatter.
This commit is contained in:
1 parent
71c7b6e711
commit
7a76a78433
3 files changed
+12
-8
No files matched your search
@@ -3,7 +3,12 @@
|
||||
import { Button } from '$lib/elements/forms/index';
|
||||
import { hideNotification, shouldShowNotification } from '$lib/helpers/notifications';
|
||||
import { app } from '$lib/stores/app';
|
||||
import { type BottomModalAlertItem, bottomModalAlerts, dismissBottomModalAlert, hideAllModalAlerts } from '$lib/stores/bottom-alerts';
|
||||
import {
|
||||
type BottomModalAlertItem,
|
||||
bottomModalAlerts,
|
||||
dismissBottomModalAlert,
|
||||
hideAllModalAlerts
|
||||
} from '$lib/stores/bottom-alerts';
|
||||
|
||||
let currentIndex = 0;
|
||||
let openModalOnMobile = false;
|
||||
@@ -244,8 +249,7 @@
|
||||
<button
|
||||
class:showing={!openModalOnMobile}
|
||||
class="card notification-card u-width-full-line"
|
||||
on:click={() => openModalOnMobile = !openModalOnMobile}>
|
||||
|
||||
on:click={() => (openModalOnMobile = !openModalOnMobile)}>
|
||||
<div class="u-flex-vertical u-gap-4">
|
||||
<div class="u-flex u-cross-center u-main-space-between">
|
||||
<h3 class="body-text-2 u-bold">Early access</h3>
|
||||
@@ -255,8 +259,8 @@
|
||||
</div>
|
||||
|
||||
<span class="u-width-fit-content">
|
||||
Opt-in to experiments, new features, and more.
|
||||
</span>
|
||||
Opt-in to experiments, new features, and more.
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
@@ -30,8 +30,8 @@ export type BottomModalAlertItem = {
|
||||
export const bottomModalAlerts = writable<BottomModalAlertItem[]>([]);
|
||||
|
||||
export const hideAllModalAlerts = () => {
|
||||
bottomModalAlerts.update((all) => all.filter((t) => t.show = false));
|
||||
}
|
||||
bottomModalAlerts.update((all) => all.filter((t) => (t.show = false)));
|
||||
};
|
||||
|
||||
export const dismissBottomModalAlert = (id: string) => {
|
||||
bottomModalAlerts.update((all) => all.filter((t) => t.id !== id));
|
||||
|
||||
@@ -56,7 +56,7 @@ const listOfPromotions: BottomModalAlertItem[] = [
|
||||
id: 'memberRoles',
|
||||
src: {
|
||||
dark: RolesSampleDark,
|
||||
light: RolesSampleLight,
|
||||
light: RolesSampleLight
|
||||
},
|
||||
title: 'Member roles now available',
|
||||
message:
|
||||
|
||||
Reference in new issue
Block a user