fix: Remove onclick access in AlertComp

This commit is contained in:
enzi221
2025-05-25 20:11:04 +09:00
parent b740eeb103
commit c6f6833028

View File

@@ -23,9 +23,6 @@
import Help from "./Help.svelte"; import Help from "./Help.svelte";
import { getChatBranches } from "src/ts/gui/branches"; import { getChatBranches } from "src/ts/gui/branches";
import { getCurrentCharacter } from "src/ts/storage/database.svelte"; import { getCurrentCharacter } from "src/ts/storage/database.svelte";
import { message } from "@tauri-apps/plugin-dialog";
import HypaV3Modal from './HypaV3Modal.svelte';
import Googli from "../UI/Googli.svelte";
let btn let btn
let input = $state('') let input = $state('')
@@ -62,14 +59,6 @@
return data return data
} }
} }
interface Props{
onclick?: (e:MouseEvent) => void
}
let {
onclick
}:Props = $props()
</script> </script>
<svelte:window onmessage={async (e) => { <svelte:window onmessage={async (e) => {
@@ -512,7 +501,6 @@
<div class="fixed top-0 left-0 h-full w-full bg-black bg-opacity-50 flex flex-col z-50 items-center justify-center" role="button" tabindex="0" onclick={close}> <div class="fixed top-0 left-0 h-full w-full bg-black bg-opacity-50 flex flex-col z-50 items-center justify-center" role="button" tabindex="0" onclick={close}>
<div class="bg-darkbg rounded-md p-4 max-w-full flex flex-col w-2xl" role="button" tabindex="0" onclick={(e) => { <div class="bg-darkbg rounded-md p-4 max-w-full flex flex-col w-2xl" role="button" tabindex="0" onclick={(e) => {
e.stopPropagation() e.stopPropagation()
onclick(e)
}}> }}>
<h1 class="font-bold text-2xl w-full"> <h1 class="font-bold text-2xl w-full">
<span> <span>