Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
prokawsar committed Jul 15, 2024
1 parent a21e614 commit f6fac5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/lib/stores/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import { persisted } from 'svelte-persisted-store'
import { writable, type Writable } from 'svelte/store'
import type { CostHistoryType } from '$lib/utils/services'

// function getPaperStore(): Writable<CostHistoryType[]> {
// return persisted<CostHistoryType[]>('paper_cost_history', [])
// }

export const paperHistoryStore = writable<CostHistoryType[]>([])
export const focusedInputStore: Writable<HTMLInputElement | null> = writable(null)
6 changes: 4 additions & 2 deletions src/routes/(app)/history/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<script lang="ts">
import { invalidateAll } from '$app/navigation'
import Loader from '$lib/elements/Loader.svelte'
import { paperHistoryStore } from '$lib/stores'
import { deleteHistory } from '$lib/utils/services.js'
import Icon from '@iconify/svelte'
import days from 'dayjs'
import mixpanel from 'mixpanel-browser'
export let data
let isLoading = false
let deleteConfirm = ''
$paperHistoryStore = data.histories
mixpanel.track_pageview({
url: '/history'
})
const handleDelete = async (id: string) => {
isLoading = true
Expand Down

0 comments on commit f6fac5d

Please sign in to comment.