Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV imports #58

Merged
merged 21 commits into from
Mar 21, 2024
Prev Previous commit
Next Next commit
fix
kevcodez committed Mar 20, 2024
commit 546463db04d385b282cb702169bb35686fc78fbf
6 changes: 0 additions & 6 deletions app/src/components/imports/ImportForm.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { Save } from 'lucide-react'
import { Button } from '~/components/ui/Button'
import { useToast } from '~/lib/hooks/use-toast'
import { emitUserEvent } from '~/lib/userEvents'
import { useRef, useState, ChangeEvent, FormEvent } from 'react'
import { useAppDispatch, useAppSelector } from '~/stores'
import { refreshPoints } from '~/stores/points-slice'
import supabase from '~/lib/supabase'

export interface ImportFormProps {
@@ -70,10 +68,6 @@ const ImportForm = ({ onSuccess }: ImportFormProps) => {
return
}

emitUserEvent('import').then(() => {
dispatch(refreshPoints(true))
})

onSuccess?.(newImport!.id!)
}
} finally {
Loading