From 06d043d4826d8fcccbeab06cd860843c9cbf8c05 Mon Sep 17 00:00:00 2001 From: frost768 Date: Wed, 15 Mar 2023 17:47:50 +0300 Subject: [PATCH] settings view removed --- src/setup/App.tsx | 2 - src/views/settings/SettingsView.tsx | 81 ----------------------------- 2 files changed, 83 deletions(-) delete mode 100644 src/views/settings/SettingsView.tsx diff --git a/src/setup/App.tsx b/src/setup/App.tsx index 57428a8c..f2c63d91 100644 --- a/src/setup/App.tsx +++ b/src/setup/App.tsx @@ -12,7 +12,6 @@ import { DeveloperView } from "@/views/developer/DeveloperView"; import { VideoTesterView } from "@/views/developer/VideoTesterView"; import { ProviderTesterView } from "@/views/developer/ProviderTesterView"; import { EmbedTesterView } from "@/views/developer/EmbedTesterView"; -import { SettingsView } from "@/views/settings/SettingsView"; import { BannerContextProvider } from "@/hooks/useBanner"; import { Layout } from "@/setup/Layout"; import { TestView } from "@/views/developer/TestView"; @@ -43,7 +42,6 @@ function App() { path="/search/:type/:query?" component={SearchView} /> - {/* other */} diff --git a/src/views/settings/SettingsView.tsx b/src/views/settings/SettingsView.tsx deleted file mode 100644 index 601e037a..00000000 --- a/src/views/settings/SettingsView.tsx +++ /dev/null @@ -1,81 +0,0 @@ -import { Dropdown, OptionItem } from "@/components/Dropdown"; -import { useSettings } from "@/state/settings"; - -export function SettingsView() { - const languages: OptionItem[] = [ - { id: "en", name: "English" }, - { id: "tr", name: "Turkish" }, - ]; - const { - language, - captionSettings, - setLanguage, - setCaptionBackgroundColor, - setCaptionColor, - setCaptionFontSize, - } = useSettings(); - const selectedLanguage = languages.find((lang) => lang.id === language) || { - id: "en", - name: "English", - }; - return ( -
-
- - setLanguage(item.id)} - selectedItem={selectedLanguage} - options={languages} - /> -
-
-
Caption Settings
-
-
- - setCaptionFontSize(e.target.valueAsNumber)} - type="range" - name="fontSize" - id="fontSize" - max={40} - min={10} - value={captionSettings.style.fontSize} - /> -
- - setCaptionColor(e.target.value)} - type="color" - name="color" - id="color" - value={captionSettings.style.color} - /> -
-
- - setCaptionBackgroundColor(e.target.value)} - type="color" - name="bgColor" - id="bgColor" - value={captionSettings.style.backgroundColor} - /> -
-
-
-
- {JSON.stringify(captionSettings, null, "\t\t")} -
-
-
- ); -}