Add skeleton, updates to client email formatting
This commit is contained in:
@@ -31,7 +31,12 @@ export function createMockPage(
|
||||
}
|
||||
|
||||
export const pageStore = writable<MockPageStoreValue>(createMockPage());
|
||||
export const navigatingStore = writable<null>(null);
|
||||
export type MockNavigatingStoreValue = {
|
||||
from: { url: URL } | null;
|
||||
to: { url: URL } | null;
|
||||
} | null;
|
||||
|
||||
export const navigatingStore = writable<MockNavigatingStoreValue>(null);
|
||||
const updatedWritable = writable(false);
|
||||
|
||||
export const updatedStore = {
|
||||
@@ -46,3 +51,17 @@ export function setMockPage(url: string, overrides: Partial<MockPageStoreValue>
|
||||
export function resetMockPage() {
|
||||
pageStore.set(createMockPage());
|
||||
}
|
||||
|
||||
export function setMockNavigating(
|
||||
to: string,
|
||||
from = 'https://www.goodwalk.co.nz/'
|
||||
) {
|
||||
navigatingStore.set({
|
||||
from: { url: new URL(from) },
|
||||
to: { url: new URL(to) }
|
||||
});
|
||||
}
|
||||
|
||||
export function resetMockNavigating() {
|
||||
navigatingStore.set(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user