|
@@ -9,7 +9,7 @@
|
|
|
import { getUsage } from '$lib/apis';
|
|
|
import { userSignOut } from '$lib/apis/auths';
|
|
|
|
|
|
- import { showSettings, mobile, showSidebar, user } from '$lib/stores';
|
|
|
+ import { showSettings, mobile, showSidebar, showShortcuts, user } from '$lib/stores';
|
|
|
|
|
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
|
|
import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte';
|
|
@@ -29,8 +29,6 @@
|
|
|
export let help = false;
|
|
|
export let className = 'max-w-[240px]';
|
|
|
|
|
|
- let showShortcuts = false;
|
|
|
-
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
|
|
let usage = null;
|
|
@@ -51,7 +49,7 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<ShortcutsModal bind:show={showShortcuts} />
|
|
|
+<ShortcutsModal bind:show={$showShortcuts} />
|
|
|
|
|
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
|
|
<DropdownMenu.Root
|
|
@@ -173,7 +171,7 @@
|
|
|
class="flex gap-2 items-center py-1.5 px-3 text-sm select-none w-full cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-md transition"
|
|
|
id="chat-share-button"
|
|
|
on:click={() => {
|
|
|
- showShortcuts = !showShortcuts;
|
|
|
+ showShortcuts.set(!$showShortcuts);
|
|
|
show = false;
|
|
|
}}
|
|
|
>
|