feat: lint codebase and run precommit hook

This commit is contained in:
Rotimi Best
2025-12-25 09:01:51 +00:00
parent 334c67f22a
commit b31ccf3037
214 changed files with 6191 additions and 2880 deletions
@@ -20,37 +20,28 @@
}: Props = $props();
</script>
<Dialog.Root
bind:open
>
<Dialog.Root bind:open>
<Dialog.Content class="w-96">
<Dialog.Header>
<Dialog.Title>
{$t('community.delete.title')} {isQuestion
? $t('community.delete.question')
: $t('community.delete.comment')}
{$t('community.delete.title')}
{isQuestion ? $t('community.delete.question') : $t('community.delete.comment')}
</Dialog.Title>
</Dialog.Header>
<div>
<p class="mt-0 text-base dark:text-white">
{$t('community.delete.sure')}
{isQuestion ? $t('community.delete.question') : $t('community.delete.comment')}?
</p>
<p class="mt-0 text-base dark:text-white">
{$t('community.delete.sure')}
{isQuestion ? $t('community.delete.question') : $t('community.delete.comment')}?
</p>
<div class="mt-5 flex items-center justify-between">
<Button
variant="outline"
onclick={onCancel}
>
{$t('community.delete.no')}
</Button>
<Button
onclick={onDelete}
loading={isDeleting}
>
{$t('community.delete.yes')}
</Button>
<div class="mt-5 flex items-center justify-between">
<Button variant="outline" onclick={onCancel}>
{$t('community.delete.no')}
</Button>
<Button onclick={onDelete} loading={isDeleting}>
{$t('community.delete.yes')}
</Button>
</div>
</div>
</div>
</Dialog.Content>
</Dialog.Root>
@@ -7,4 +7,3 @@ export interface CurrentCommunityQuestion {
export const currentCommunityQuestion = writable<CurrentCommunityQuestion>({
title: null
});