mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-18 01:42:10 +08:00
chore: make eslint happy (part 1) (#4890)
This commit is contained in:
@@ -24,6 +24,8 @@ export const RuleItem = (props: Props) => {
|
||||
const proxyPolicy = rule.match(/[^,]+$/)?.[0] ?? "";
|
||||
const ruleContent = rule.slice(ruleType.length + 1, -proxyPolicy.length - 1);
|
||||
|
||||
const $sortable = useSortable({ id: ruleRaw });
|
||||
|
||||
const {
|
||||
attributes,
|
||||
listeners,
|
||||
@@ -32,7 +34,7 @@ export const RuleItem = (props: Props) => {
|
||||
transition,
|
||||
isDragging,
|
||||
} = sortable
|
||||
? useSortable({ id: ruleRaw })
|
||||
? $sortable
|
||||
: {
|
||||
attributes: {},
|
||||
listeners: {},
|
||||
|
||||
Reference in New Issue
Block a user