Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm committed Jan 20, 2023
1 parent dcbb921 commit 1259760
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/OverlayContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const OverlayContainer: FC<{ useFullWindowForIOS?: boolean }> = ({
? FullWindowOverlay
: RootSiblingPortal;
return (
<Container style={StyleSheet.absoluteFill}>
<Container>
<View
testID="OverlayContainer-View"
pointerEvents="box-none"
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/hooks/useManageTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const useManageTokensOfAccount = ({
if (isFocused) {
fetchAccountTokens();
}
}, 3000);
}, pollingInterval);
}
return () => {
clearInterval(timer);
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const KitProvider: FC<LaunchProps> = (propsRaw) => {
// but can not work with modal
// https://github.com/software-mansion/react-native-screens/issues/1149
// so now only used for toast
<FullWindowOverlay style={StyleSheet.absoluteFill}>
<FullWindowOverlay>
<View
pointerEvents="box-none"
style={StyleSheet.absoluteFill}
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/store/middlewares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { Middleware } from 'redux';
// return result as unknown;
// };

const middlewares = [
const middlewares: Middleware<unknown, unknown>[] = [
// simpleLogger,
// logger,
// backgroundCheck,
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/views/Discover/MyDAppList/desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const Favorites = () => {
callback={showFavoriteMenu}
/>
),
[],
[cardWidth],
);

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/src/views/ManageNetworks/RPCNode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import backgroundApiProxy from '../../../background/instance/backgroundApiProxy'
import { useNetwork } from '../../../hooks';
import { updateCustomNetworkRpc } from '../../../store/reducers/settings';
import AddNodeDialog from '../components/AddNodeDialog';
import RestartAppDialog from '../components/RestartDialog';
// import RestartAppDialog from '../components/RestartDialog';
import { RPCItem } from '../components/RPCItem';
import { measureRpc, useRPCUrls } from '../hooks';

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/request/normalize/normalizeWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- browser: window.WebSocket
- rn: global.WebSocket
*/
import { usingBrowserWebSocket } from 'engine.io-client/build/esm/transports/websocket-constructor.js';
// import { usingBrowserWebSocket } from 'engine.io-client/build/esm/transports/websocket-constructor.js';
import ws from 'ws';

/*
Expand Down
2 changes: 1 addition & 1 deletion packages/web/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/order
/* eslint-disable import/order */
import '@onekeyhq/shared/src/polyfill';

import { Provider } from '@onekeyhq/kit';
Expand Down

0 comments on commit 1259760

Please sign in to comment.