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")} -
-
-
- ); -}