Skip to content

Commit

Permalink
TW-1104 Remove a redundant hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
keshan3262 committed Oct 27, 2023
1 parent de4d19c commit 91eabaa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/pages/Home/OtherComponents/Tokens/AcceptAdsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { FC, useCallback, useMemo } from 'react';
import { useDispatch } from 'react-redux';

import { Banner, BannerButtonProps } from 'app/atoms/Banner';
import { useUserAnalyticsAndAdsSettings } from 'app/hooks/use-user-analytics-and-ads-settings.hook';
import { togglePartnersPromotionAction } from 'app/store/partners-promotion/actions';
import { setAdsBannerVisibilityAction } from 'app/store/settings/actions';
import { T } from 'lib/i18n';
Expand All @@ -14,7 +13,6 @@ import { AssetsSelectors } from '../Assets.selectors';
export const AcceptAdsBanner: FC = () => {
const dispatch = useDispatch();

useUserAnalyticsAndAdsSettings();
const onEnableButtonClick = useCallback(() => {
dispatch(togglePartnersPromotionAction(true));
dispatch(setAdsBannerVisibilityAction(false));
Expand Down

0 comments on commit 91eabaa

Please sign in to comment.