mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-15 23:42:27 +08:00
chore(eslint): add eslint-plugin-react-compiler (#5918)
* chore(eslint): add `eslint-plugin-react-compiler` * refactor: fix eslint warnings and avoid in-render mutations --------- Co-authored-by: Slinetrac <realakayuki@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
|
||||
|
||||
import matchCaseIcon from "@/assets/image/component/match_case.svg?react";
|
||||
import matchWholeWordIcon from "@/assets/image/component/match_whole_word.svg?react";
|
||||
import useRegularExpressionIcon from "@/assets/image/component/use_regular_expression.svg?react";
|
||||
import UseRegularExpressionIcon from "@/assets/image/component/use_regular_expression.svg?react";
|
||||
import { buildRegex, compileStringMatcher } from "@/utils/search-matcher";
|
||||
|
||||
export type SearchState = {
|
||||
@@ -223,7 +223,7 @@ export const BaseSearchBox = ({
|
||||
<Tooltip title={t("shared.placeholders.useRegex")}>
|
||||
<div>
|
||||
<SvgIcon
|
||||
component={useRegularExpressionIcon}
|
||||
component={UseRegularExpressionIcon}
|
||||
aria-label={useRegularExpression ? "active" : "inactive"}
|
||||
{...iconStyle}
|
||||
onClick={handleToggleUseRegularExpression}
|
||||
|
||||
Reference in New Issue
Block a user