refactor(ui): extract about page opening to a direct function call

This commit is contained in:
sethburkart123
2024-09-10 09:43:43 +10:00
parent 2348b90023
commit 966b58b932
2 changed files with 3 additions and 8 deletions
@@ -8,6 +8,7 @@
import type { SettingsList } from "@/svelte-interface/types/SettingsProps"
import { settingsState } from "@/seqta/utils/listeners/SettingsState.ts"
import { closeSettings, OpenAboutPage } from "@/SEQTA"
</script>
{#snippet Setting({ title, description, Component, props }: SettingsList) }
@@ -96,7 +97,7 @@
id: 9,
Component: Button,
props: {
onClick: () => browser.runtime.sendMessage({ type: 'currentTab', info: 'OpenAboutPage' }),
onClick: () => { OpenAboutPage(); closeSettings() },
text: "Open"
}
},