mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 20:02:20 +08:00
chore(deps): lock file maintenance npm dependencies (#6282)
* chore(deps): lock file maintenance npm dependencies * chore(deps): run pnpm update * chore: add parserOptions * refactor: fix @eslint-react/no-implicit-key --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Slinetrac <realakayuki@gmail.com>
This commit is contained in:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Slinetrac
parent
88764d763c
commit
a7041657c9
@@ -490,11 +490,18 @@ export const GroupsEditorViewer = (props: Props) => {
|
||||
]}
|
||||
value={field.value}
|
||||
getOptionLabel={translateStrategy}
|
||||
renderOption={(props, option) => (
|
||||
<li {...props} title={translateStrategy(option)}>
|
||||
{translateStrategy(option)}
|
||||
</li>
|
||||
)}
|
||||
renderOption={(props, option) => {
|
||||
const { key, ...optionProps } = props;
|
||||
return (
|
||||
<li
|
||||
key={key}
|
||||
{...optionProps}
|
||||
title={translateStrategy(option)}
|
||||
>
|
||||
{translateStrategy(option)}
|
||||
</li>
|
||||
);
|
||||
}}
|
||||
onChange={(_, value) => value && field.onChange(value)}
|
||||
renderInput={(params) => <TextField {...params} />}
|
||||
/>
|
||||
@@ -557,11 +564,18 @@ export const GroupsEditorViewer = (props: Props) => {
|
||||
disableCloseOnSelect
|
||||
onChange={(_, value) => value && field.onChange(value)}
|
||||
renderInput={(params) => <TextField {...params} />}
|
||||
renderOption={(props, option) => (
|
||||
<li {...props} title={translatePolicy(option)}>
|
||||
{translatePolicy(option)}
|
||||
</li>
|
||||
)}
|
||||
renderOption={(props, option) => {
|
||||
const { key, ...optionProps } = props;
|
||||
return (
|
||||
<li
|
||||
key={key}
|
||||
{...optionProps}
|
||||
title={translatePolicy(option)}
|
||||
>
|
||||
{translatePolicy(option)}
|
||||
</li>
|
||||
);
|
||||
}}
|
||||
getOptionLabel={translatePolicy}
|
||||
/>
|
||||
</Item>
|
||||
|
||||
@@ -557,11 +557,12 @@ export const RulesEditorViewer = (props: Props) => {
|
||||
t(RULE_TYPE_LABEL_KEYS[option.name] ?? option.name)
|
||||
}
|
||||
renderOption={(props, option) => {
|
||||
const { key, ...optionProps } = props;
|
||||
const label = t(
|
||||
RULE_TYPE_LABEL_KEYS[option.name] ?? option.name,
|
||||
);
|
||||
return (
|
||||
<li {...props} title={label}>
|
||||
<li key={key} {...optionProps} title={label}>
|
||||
{label}
|
||||
</li>
|
||||
);
|
||||
@@ -624,9 +625,10 @@ export const RulesEditorViewer = (props: Props) => {
|
||||
t(PROXY_POLICY_LABEL_KEYS[option] ?? option)
|
||||
}
|
||||
renderOption={(props, option) => {
|
||||
const { key, ...optionProps } = props;
|
||||
const label = t(PROXY_POLICY_LABEL_KEYS[option] ?? option);
|
||||
return (
|
||||
<li {...props} title={label}>
|
||||
<li key={key} {...optionProps} title={label}>
|
||||
{label}
|
||||
</li>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user