File tree 4 files changed +58
-9461
lines changed 4 files changed +58
-9461
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
+ import { Toaster } from " svelte-sonner" ;
2
3
import " ../app.css" ;
3
4
4
5
const { children } = $props ();
5
6
</script >
6
7
8
+ <Toaster richColors />
9
+
7
10
{@render children ()}
Original file line number Diff line number Diff line change 17
17
type NameConflictResolution ,
18
18
type RenameErrorArgs ,
19
19
} from " svelte-file-tree" ;
20
- import { Toaster , toast } from " svelte-sonner" ;
20
+ import { toast } from " svelte-sonner" ;
21
21
import { fade , fly } from " svelte/transition" ;
22
22
import data from " ./data.json" with { type: " json" };
23
23
import { DialogState } from " ./state.svelte.js" ;
48
48
description : string ;
49
49
},
50
50
NameConflictResolution
51
- > ({
52
- defaultResult: " cancel" ,
53
- });
51
+ > ();
54
52
55
53
const onRenameError = ({ error , name }: RenameErrorArgs ): void => {
56
54
switch (error ) {
144
142
</Tree >
145
143
</main >
146
144
147
- <Toaster richColors />
148
-
149
145
<Dialog .Root
150
146
open ={dialog .data !== undefined }
151
147
onOpenChange ={(open ) => {
152
148
if (! open ) {
153
- dialog .close ();
149
+ dialog .close (" cancel " );
154
150
}
155
151
}}
156
152
>
You can’t perform that action at this time.
0 commit comments