Skip to content

Commit

Permalink
remove eslint-disable-next-line react-hooks/exhaustive-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
chloezxyy committed Oct 6, 2023
1 parent 14ec54f commit ce2118a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export const BottomSheetAddressDetailV2 = (
const activeLabel = useAddressLabel(props.address);
const { getAddressUrl } = useDeFiScanContext();

// eslint-disable-next-line react-hooks/exhaustive-deps
const onActiveAddressPress = useCallback(
debounce(() => {
if (showToast) {
Expand Down Expand Up @@ -145,12 +144,10 @@ export const BottomSheetAddressDetailV2 = (

useEffect(() => {
fetchAddresses().catch(logger.error);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [wallet, addressLength]);

useEffect(() => {
isNextAddressUsable().catch(logger.error);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [blockCount]);

const CreateAddressButton = useCallback(() => {
Expand All @@ -176,7 +173,6 @@ export const BottomSheetAddressDetailV2 = (
</ThemedTextV2>
</ThemedTouchableOpacityV2>
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [canCreateAddress, addressLength]);

const onChangeAddress = async (index: number): Promise<void> => {
Expand Down Expand Up @@ -335,7 +331,6 @@ export const BottomSheetAddressDetailV2 = (
</ThemedTouchableOpacityV2>
);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[labeledAddresses, domain],
);

Expand Down Expand Up @@ -381,7 +376,6 @@ export const BottomSheetAddressDetailV2 = (
</View>
</ThemedViewV2>
);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props, addressLength, activeLabel, domain, availableAddresses]);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,10 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
return () => {
isSubscribed = false;
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [wallet, addressLength, walletAddressFromStore]);

// Search
const [searchString, setSearchString] = useState("");
// eslint-disable-next-line react-hooks/exhaustive-deps
const filterAddress = useCallback(
debounce((searchString: string): void => {
setFilteredAddressBook(
Expand Down Expand Up @@ -241,7 +239,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {

useEffect(() => {
fetchAddresses().catch(logger.error);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
Expand All @@ -255,7 +252,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
);
};
updateLocalStorage().catch(Logging.error);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [userPreferencesFromStore]);

useEffect(() => {
Expand All @@ -269,7 +265,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
} else {
setFilteredWalletAddress(walletAddress);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [
addressBook,
walletAddress,
Expand All @@ -286,7 +281,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
{ shadowOpacity: 0 },
],
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const WhitelistedAddressItem = useCallback(
Expand Down Expand Up @@ -423,7 +417,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
</ThemedTouchableOpacityV2>
);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[filteredAddressBook, filteredWalletAddress, activeButtonGroup],
);

Expand Down Expand Up @@ -524,7 +517,6 @@ export function AddressBookScreen({ route, navigation }: Props): JSX.Element {
</ThemedViewV2>
);
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[filteredAddressBook, filteredWalletAddress, activeButtonGroup],
);

Expand Down

0 comments on commit ce2118a

Please sign in to comment.