diff --git a/src/components/Collapsible.tsx b/src/components/Collapsible.tsx index 65284cd..a2feed7 100644 --- a/src/components/Collapsible.tsx +++ b/src/components/Collapsible.tsx @@ -2,7 +2,7 @@ import type { MutableRefObject } from 'react'; import * as React from 'react'; import ResizeObserver from 'resize-observer-polyfill'; -import { framerMotionResouce } from '../misc/motion'; +import { framerMotionResource } from '../misc/motion'; const { memo, useState, useRef, useEffect } = React; @@ -54,7 +54,7 @@ const variantsCollpapsibleChildContainer = { type CollapsibleProps = { children: React.ReactNode; isOpen?: boolean }; const Collapsible = memo(({ children, isOpen }: CollapsibleProps) => { - const module = framerMotionResouce.read(); + const module = framerMotionResource.read(); const motion = module.motion; const previous = usePrevious(isOpen); const [refToMeature, { height }] = useMeasure(); diff --git a/src/components/Connections.tsx b/src/components/Connections.tsx index c7fe882..4a31ffa 100644 --- a/src/components/Connections.tsx +++ b/src/components/Connections.tsx @@ -162,7 +162,7 @@ function Conn({ apiConfig }) { return [...closed, ...prev].slice(0, 101); }); // if previous connections and current connections are both empty - // arrays, we wont update state to avaoid rerender + // arrays, we wont update state to avoid rerender if (x && (x.length !== 0 || prevConnsRef.current.length !== 0) && !isRefreshPaused) { prevConnsRef.current = x; setConns(x); diff --git a/src/components/Rules.tsx b/src/components/Rules.tsx index ad630b5..4447a14 100644 --- a/src/components/Rules.tsx +++ b/src/components/Rules.tsx @@ -4,7 +4,7 @@ import { areEqual, VariableSizeList } from 'react-window'; import { RuleProviderItem } from 'src/components/rules/RuleProviderItem'; import { useRuleAndProvider } from 'src/components/rules/rules.hooks'; import { RulesPageFab } from 'src/components/rules/RulesPageFab'; -import { TextFilter } from 'src/components/shared/TextFitler'; +import { TextFilter } from '$src/components/shared/TextFilter'; import { ruleFilterText } from 'src/store/rules'; import { State } from 'src/store/types'; import { ClashAPIConfig, RuleType } from 'src/types'; diff --git a/src/components/SvgYacd.tsx b/src/components/SvgYacd.tsx index 499456d..3201969 100644 --- a/src/components/SvgYacd.tsx +++ b/src/components/SvgYacd.tsx @@ -23,7 +23,7 @@ function SvgYacd({ eye = '#eee', mouth = '#eee', }: Props) { - const faceClasName = cx({ [s.path]: animate }); + const faceClassName = cx({ [s.path]: animate }); return ( @@ -34,7 +34,7 @@ function SvgYacd({ strokeWidth="4" strokeLinecap="round" fill={c0} - className={faceClasName} + className={faceClassName} /> diff --git a/src/components/proxies/Proxies.tsx b/src/components/proxies/Proxies.tsx index 93b7147..89ced9d 100644 --- a/src/components/proxies/Proxies.tsx +++ b/src/components/proxies/Proxies.tsx @@ -9,7 +9,7 @@ import { ProxyPageFab } from 'src/components/proxies/ProxyPageFab'; import { ProxyProviderList } from 'src/components/proxies/ProxyProviderList'; import Settings from 'src/components/proxies/Settings'; import BaseModal from 'src/components/shared/BaseModal'; -import { TextFilter } from 'src/components/shared/TextFitler'; +import { TextFilter } from '$src/components/shared/TextFilter'; import { connect, useStoreActions } from 'src/components/StateProvider'; import Equalizer from 'src/components/svg/Equalizer'; import { getClashAPIConfig } from 'src/store/app'; diff --git a/src/components/proxies/Proxy.module.scss b/src/components/proxies/Proxy.module.scss index 4a1b8e3..46b6e95 100644 --- a/src/components/proxies/Proxy.module.scss +++ b/src/components/proxies/Proxy.module.scss @@ -80,7 +80,7 @@ height: var(--size-dot); background-color: #fff; // For non-primitive proxy type like "Selector", "LoadBalance", "DIRECT", etc. we are using a transparent - // background, and this selected indicator has a white background. In "light" them mode, the constrast + // background, and this selected indicator has a white background. In "light" them mode, the contrast // between the bg of the indicator and the "background" is too small. In that case we want to add a // border around this indicator so it's more distinguishable. border: 1px solid var(--color-proxy-dot-selected-ind-bo); diff --git a/src/components/proxies/ProxyProvider.tsx b/src/components/proxies/ProxyProvider.tsx index 465cbdc..c570512 100644 --- a/src/components/proxies/ProxyProvider.tsx +++ b/src/components/proxies/ProxyProvider.tsx @@ -6,7 +6,7 @@ import Button from 'src/components/Button'; import CollapsibleSectionHeader from 'src/components/CollapsibleSectionHeader'; import { useUpdateProviderItem } from 'src/components/proxies/proxies.hooks'; import { connect, useStoreActions } from 'src/components/StateProvider'; -import { framerMotionResouce } from 'src/misc/motion'; +import { framerMotionResource } from 'src/misc/motion'; import { getClashAPIConfig, getCollapsibleIsOpen, @@ -113,7 +113,7 @@ const arrow = { hover: { rotate: 360, transition: { duration: 0.3 } }, }; function Refresh() { - const module = framerMotionResouce.read(); + const module = framerMotionResource.read(); const motion = module.motion; return ( ; placeholder?: string }) { - const [onChange, text] = useTextInut(props.textAtom); + const [onChange, text] = useTextInput(props.textAtom); return (