[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io
2024-06-19 09:21:51 +00:00
parent 0e491edc46
commit 9cfa0cba63
14 changed files with 21 additions and 23 deletions
@@ -1,7 +1,7 @@
import { useState, memo, useCallback } from "react";
import { memo, useCallback, useState } from "react";
import Switch from "../../components/Switch";
import { useSettingsContext } from "../../SettingsContext";
import { motion, AnimatePresence } from "framer-motion";
import { AnimatePresence, motion } from "framer-motion";
import { CustomShortcut } from "../../types/AppProps";
function formatUrl(inputUrl: string) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { FC, createRef, useState } from 'react';
import { createRef, FC, useState } from 'react';
import BackgroundSelector from '../../components/BackgroundSelector';
//import ThemeSelector from '../../components/ThemeSelector';
import { memo } from 'react';
+3 -3
View File
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react';
import { Swiper, SwiperSlide } from 'swiper/react';
import Header from '../components/store/header';
import { Autoplay } from 'swiper/modules';
import { motion, AnimatePresence } from 'framer-motion';
import { AnimatePresence, motion } from 'framer-motion';
import 'swiper/css';
import 'swiper/css/pagination';
@@ -110,7 +110,7 @@ const Store = () => {
if (!themeContent) {
alert('There was an error, The theme was not found!')
return
};
}
setInstallingThemes([...installingThemes, id]);
@@ -125,7 +125,7 @@ const Store = () => {
if (!themeContent) {
alert('There was an error, The theme was not found!')
return
};
}
setInstallingThemes([...installingThemes, id]);