Skip to content

Commit

Permalink
feat: change something
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 20, 2024
1 parent 46554b4 commit f44651a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,10 @@ const App: React.FC<IAppProps> = (props) => {

const cancelGlobalUserTipsEventListener = globalEvent.on(
'user_tips',
({ type, message: _message }) => {
messageApi[type](_message);
}
({ type, message: _message }) => messageApi[type](_message)
);
const cancelGlobalUserAlertEventListener = globalEvent.on(
'user_alert',
({ type, ...props }) => {
modalApi[type](props);
}
const cancelGlobalUserAlertEventListener = globalEvent.on('user_alert', ({ type, ...props }) =>
modalApi[type](props)
);

const cancelListenerReLoad = assetsLoadHandle.reLoadByOnline(() => !enableServiceWorkerCache);
Expand Down
1 change: 0 additions & 1 deletion src/filehandle/components/FileSideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ function Menu({
) : (
<a
href="/"
data-id={item}
onClick={(e) => e.preventDefault()}
title={item.name}
onContextMenu={(e) => {
Expand Down

0 comments on commit f44651a

Please sign in to comment.