mirror of
https://github.com/OSMA-D/osma-app.git
synced 2024-12-04 18:46:23 +03:00
refactor: delete unused
This commit is contained in:
parent
0a1f979891
commit
4262dc7331
3 changed files with 2 additions and 3 deletions
|
@ -17,7 +17,7 @@ function App() {
|
||||||
};
|
};
|
||||||
|
|
||||||
let changeLng = async (lang) => {
|
let changeLng = async (lang) => {
|
||||||
let lng = await invoke("change_lng", { lng: lang });
|
await invoke("change_lng", { lng: lang });
|
||||||
i18n.changeLanguage(lang);
|
i18n.changeLanguage(lang);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { invoke } from "@tauri-apps/api/tauri";
|
import { invoke } from "@tauri-apps/api/tauri";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { Button } from "../components/button";
|
import React from "react";
|
||||||
import React, { useState } from "react";
|
|
||||||
|
|
||||||
function CheckAuth() {
|
function CheckAuth() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
Loading…
Add table
Reference in a new issue