mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
feat: add rustfmt configuration and CI workflow for code formatting
refactor: streamline formatting workflow by removing unused taplo steps and clarifying directory change refactor: remove unnecessary directory change step in formatting workflow
This commit is contained in:
@@ -37,7 +37,7 @@ export function useHeadStateNew() {
|
||||
|
||||
try {
|
||||
const data = JSON.parse(
|
||||
localStorage.getItem(HEAD_STATE_KEY)!
|
||||
localStorage.getItem(HEAD_STATE_KEY)!,
|
||||
) as HeadStateStorage;
|
||||
|
||||
const value = data[current] || {};
|
||||
@@ -74,7 +74,7 @@ export function useHeadStateNew() {
|
||||
return ret;
|
||||
});
|
||||
},
|
||||
[current]
|
||||
[current],
|
||||
);
|
||||
|
||||
return [state, setHeadState] as const;
|
||||
|
||||
Reference in New Issue
Block a user