Update website/src/routes/notifications/NotificationItem.svelte
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
00d25c7808
commit
d9d85c21b2
1 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let notification;
|
interface Notification {
|
||||||
|
type: 'HOPIUM' | 'TRANSFER' | 'RUG_PULL' | 'SYSTEM';
|
||||||
|
link?: string;
|
||||||
|
isRead: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export let notification: Notification;
|
||||||
export let isNew = false;
|
export let isNew = false;
|
||||||
|
|
||||||
function getNotificationColorClasses(type: string, isNew: boolean, isRead: boolean) {
|
function getNotificationColorClasses(type: string, isNew: boolean, isRead: boolean) {
|
||||||
|
|
|
||||||
Reference in a new issue