From 9619c52720c97ef74842b15aa732dd0a8d6fb26a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Wed, 22 Jun 2022 23:22:27 -0400 Subject: add settings page with install from URL option --- .../components/settings/pages/GeneralSettings.tsx | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 frontend/src/components/settings/pages/GeneralSettings.tsx (limited to 'frontend/src/components/settings/pages') diff --git a/frontend/src/components/settings/pages/GeneralSettings.tsx b/frontend/src/components/settings/pages/GeneralSettings.tsx new file mode 100644 index 00000000..1cc8076d --- /dev/null +++ b/frontend/src/components/settings/pages/GeneralSettings.tsx @@ -0,0 +1,30 @@ +import { DialogButton, Field, TextField } from 'decky-frontend-lib'; +import { useState } from 'react'; +import { FaShapes } from 'react-icons/fa'; + +import { installFromURL } from '../../store/Store'; + +export default function GeneralSettings() { + const [pluginURL, setPluginURL] = useState(''); + // const [checked, setChecked] = useState(false); // store these in some kind of State instead + return ( +
+ {/* } + > + setChecked(e)} + /> + */} + setPluginURL(e?.target.value)} />} + icon={} + > + installFromURL(pluginURL)}>Install + +
+ ); +} -- cgit v1.2.3