Remove useToast everywhere

This commit is contained in:
Gregory Schier
2025-01-06 12:21:21 -08:00
parent ab55c2e0ce
commit 806a8eb801
14 changed files with 58 additions and 84 deletions

View File

@@ -4,13 +4,12 @@ import { getActiveWorkspace } from './useActiveWorkspace';
import { useAlert } from './useAlert';
import { useDialog } from './useDialog';
import { useFastMutation } from './useFastMutation';
import { useToast } from './useToast';
import { showToast } from '../lib/toast';
import { workspacesAtom } from './useWorkspaces';
export function useExportData() {
const alert = useAlert();
const dialog = useDialog();
const toast = useToast();
return useFastMutation({
mutationKey: ['export_data'],
@@ -32,7 +31,7 @@ export function useExportData() {
<ExportDataDialog
onHide={hide}
onSuccess={() => {
toast.show({
showToast({
color: 'success',
message: 'Data export successful',
});