Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Dec 2, 2024
1 parent e57ac17 commit c59b16e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts">
import ErrorMessage from '$comp/ErrorMessage.svelte';
import DateTime from "$comp/formatters/DateTime.svelte";
import DateTime from '$comp/formatters/DateTime.svelte';
import { P } from '$comp/typography';
import * as Card from '$comp/ui/card';
import { getStackByIdQuery } from '$features/stacks/api.svelte';
import ChartLineVariant from '~icons/mdi/chart-line-variant';
import InformationOutline from '~icons/mdi/information-outline';
import Users from '~icons/mdi/users';
import StackStatusDropdown from "./StackStatusDropdown.svelte";
import StackStatusDropdown from './StackStatusDropdown.svelte';
interface Props {
id: string;
Expand Down Expand Up @@ -39,12 +39,14 @@
<div class="text-2xl font-bold"><StackStatusDropdown value={stack.status} /></div>
<p class="text-xs text-muted-foreground">
{#if stack.date_fixed}
Fixed {#if stack.fixed_in_version}in {stack.fixed_in_version} {/if} on <DateTime value={stack.date_fixed}></DateTime>
Fixed {#if stack.fixed_in_version}in {stack.fixed_in_version}
{/if} on <DateTime value={stack.date_fixed}></DateTime>
{/if}
{#if stack.snooze_until_utc}
Snoozed until <DateTime value={stack.snooze_until_utc}></DateTime>
{/if}
</Card.Content>
</p></Card.Content
>
</Card.Root>
<Card.Root>
<Card.Header class="flex flex-row items-center justify-between space-y-0 pb-2">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import * as Select from '$comp/ui/select';
import { StackStatus } from "../models";
import { StackStatus } from '../models';
interface Props {
onChange?: (status: StackStatus) => Promise<void>;
Expand All @@ -12,12 +12,12 @@
type Item = { label: string; value: StackStatus };
const items: Item[] = [
{ label: "Open", value: StackStatus.Open },
{ label: "Fixed", value: StackStatus.Fixed },
{ label: "Regressed", value: StackStatus.Regressed },
{ label: "Snoozed", value: StackStatus.Snoozed },
{ label: "Ignored", value: StackStatus.Ignored },
{ label: "Discarded", value: StackStatus.Discarded },
{ label: 'Open', value: StackStatus.Open },
{ label: 'Fixed', value: StackStatus.Fixed },
{ label: 'Regressed', value: StackStatus.Regressed },
{ label: 'Snoozed', value: StackStatus.Snoozed },
{ label: 'Ignored', value: StackStatus.Ignored },
{ label: 'Discarded', value: StackStatus.Discarded }
];
let selected = $derived((items.find((item) => item.value === value) || items[items.length - 1]) as Item);
Expand Down

0 comments on commit c59b16e

Please sign in to comment.