Update tag

This commit is contained in:
ernstmul committed 2025-05-19 07:14:19 +02:00
1 parent 20e34c086a
commit 47b4d6e6bc
2 files changed
+11 -11

No files matched your search

+3 -4
View File
@@ -2,10 +2,8 @@ import { get } from 'svelte/store';
import { user } from '$lib/stores/user';
import { sdk } from '$lib/stores/sdk';
const userPreferences = () => get(user)?.prefs;
export const joinWaitlistSites = () => {
const currentPrefs = userPreferences();
const currentPrefs = () => get(user)?.prefs;
const newPrefs = {
...currentPrefs,
@@ -16,7 +14,8 @@ export const joinWaitlistSites = () => {
};
export const isOnWaitlistSites = (): boolean => {
const currentPrefs = userPreferences();
const currentPrefs = () => get(user)?.prefs;
console.log('load from prefs', 'joinWaitlistSites' in currentPrefs);
return 'joinWaitlistSites' in currentPrefs;
};
+8 -7
View File
@@ -179,7 +179,9 @@
}}>
<span class="icon-globe-alt" aria-hidden="true" />
<span class="text">Sites</span>
<span class="badge">New</span>
<div class="tag eyebrow-heading-3">
<span class="text u-x-small">New</span>
</div>
</a>
</li>
<li class="drop-list-item is-not-desktop">
@@ -274,12 +276,11 @@
z-index: 9999;
}
.badge {
background-color: hsl(calc(343 - 3) 79% 48%);
color: white;
padding: 4px 6px;
border-radius: 0.25rem;
font-size: 12px;
.tag {
padding-inline: 8px;
height: 20px;
display: flex;
align-items: center;
}
.drop-button {