refactor: delete unused

This commit is contained in:
Artemy 2022-08-12 18:28:50 +03:00
parent 0a1f979891
commit 4262dc7331
3 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@ function App() {
};
let changeLng = async (lang) => {
let lng = await invoke("change_lng", { lng: lang });
await invoke("change_lng", { lng: lang });
i18n.changeLanguage(lang);
};

View file

@ -1,8 +1,7 @@
import { useNavigate } from "react-router-dom";
import { invoke } from "@tauri-apps/api/tauri";
import { useEffect } from "react";
import { Button } from "../components/button";
import React, { useState } from "react";
import React from "react";
function CheckAuth() {
const navigate = useNavigate();