mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 16:21:25 +02:00
Variables in pair editor
This commit is contained in:
@@ -32,8 +32,6 @@ import { monokaiProDefault } from '../lib/theme/themes/monokai-pro';
|
||||
import { rosePineDefault } from '../lib/theme/themes/rose-pine';
|
||||
import { yaakDark } from '../lib/theme/themes/yaak';
|
||||
import { getThemeCSS } from '../lib/theme/window';
|
||||
import { Button } from './core/Button';
|
||||
import { useToast } from './ToastContext';
|
||||
|
||||
export function GlobalHooks() {
|
||||
// Include here so they always update, even if no component references them
|
||||
@@ -41,16 +39,6 @@ export function GlobalHooks() {
|
||||
useRecentEnvironments();
|
||||
useRecentRequests();
|
||||
|
||||
const toast = useToast();
|
||||
useEffect(() => {
|
||||
toast.show({
|
||||
id: 'test',
|
||||
message: 'Hello Toast!',
|
||||
action: <Button color="primary">HEllo</Button>,
|
||||
timeout: 1000000,
|
||||
});
|
||||
}, [toast]);
|
||||
|
||||
// Other useful things
|
||||
useSyncThemeToDocument();
|
||||
useCommandPalette();
|
||||
|
||||
Reference in New Issue
Block a user