Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 18, 2024
1 parent 0ccb385 commit f26bd29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions desktop/src/pages/SettingsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { fs, invoke, path, shell } from "@tauri-apps/api";
import { getName, getVersion } from "@tauri-apps/api/app";
import { useContext, useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { useLocalStorage } from "usehooks-ts";
import { languages } from "../i18n";
import { ErrorModalContext } from "../providers/ErrorModalProvider";
import { cx, getAppInfo, getIssueUrl } from "../utils";

export default function SettingsPage() {
Expand All @@ -15,7 +14,6 @@ export default function SettingsPage() {
const [models, setModels] = useState<fs.FileEntry[]>([]);
const navigate = useNavigate();
const [appVersion, setAppVersion] = useState("");
const { setState: setModalState } = useContext(ErrorModalContext);

useEffect(() => {
i18n.changeLanguage(language);
Expand Down

0 comments on commit f26bd29

Please sign in to comment.