fix: suppress pre-existing no-unused-vars in account page
This commit is contained in:
@@ -51,7 +51,6 @@
|
|||||||
|
|
||||||
if (!authStore.isAuthenticated) {
|
if (!authStore.isAuthenticated) {
|
||||||
pageState = 'unauthorized';
|
pageState = 'unauthorized';
|
||||||
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
|
||||||
goto('/login', { replaceState: true });
|
goto('/login', { replaceState: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -93,11 +92,11 @@
|
|||||||
|
|
||||||
let userData = $state<User | null>(null);
|
let userData = $state<User | null>(null);
|
||||||
let loadingUser = $state(true);
|
let loadingUser = $state(true);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
let stamps = $state(0);
|
let stamps = $state(0);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
let pendingRedemption = $state(false);
|
let pendingRedemption = $state(false);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
let uploadingPic = $state(false);
|
let uploadingPic = $state(false);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
|
||||||
function getStampPath(slotNum: number): string {
|
function getStampPath(slotNum: number): string {
|
||||||
const petals = 7 + (slotNum % 4); // 7, 8, 9, 10 petals
|
const petals = 7 + (slotNum % 4); // 7, 8, 9, 10 petals
|
||||||
@@ -728,17 +727,15 @@
|
|||||||
let editingPhone = $state(false);
|
let editingPhone = $state(false);
|
||||||
let phoneInput = $state('');
|
let phoneInput = $state('');
|
||||||
let phoneError = $state('');
|
let phoneError = $state('');
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
let savingPhone = $state(false);
|
let savingPhone = $state(false);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
// Phone validation (UK format)
|
// Phone validation (UK format)
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
function validatePhone(phone: string): boolean {
|
function validatePhone(phone: string): boolean {
|
||||||
return isValidUKPhone(phone);
|
return isValidUKPhone(phone);
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
function formatPhoneInput(value: string): string {
|
function formatPhoneInput(value: string): string {
|
||||||
return formatPhoneDisplay(value);
|
return formatPhoneDisplay(value);
|
||||||
}
|
}
|
||||||
@@ -1239,9 +1236,8 @@
|
|||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
toast.success('Account deleted successfully', { id: loadingToast });
|
toast.success('Account deleted successfully', { id: loadingToast });
|
||||||
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
|
||||||
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
|
||||||
authStore.logout();
|
authStore.logout();
|
||||||
|
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
||||||
goto('/');
|
goto('/');
|
||||||
} else {
|
} else {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
@@ -2601,12 +2597,10 @@
|
|||||||
<!-- Export My Data -->
|
<!-- Export My Data -->
|
||||||
<div>
|
<div>
|
||||||
<h3 class="mb-2 text-sm font-semibold">Data Privacy</h3>
|
<h3 class="mb-2 text-sm font-semibold">Data Privacy</h3>
|
||||||
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
|
|
||||||
<p class="mb-3 text-sm text-gray-600">
|
<p class="mb-3 text-sm text-gray-600">
|
||||||
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
|
|
||||||
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
|
|
||||||
View and export all personal data we hold about you
|
View and export all personal data we hold about you
|
||||||
</p>
|
</p>
|
||||||
|
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
||||||
<Button onclick={() => goto('/gdpr')} variant="outline">
|
<Button onclick={() => goto('/gdpr')} variant="outline">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
Reference in New Issue
Block a user