feat: lint codebase and run precommit hook
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user