Skip to content

Commit

Permalink
fix: hide pro page in setting for review
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Dec 11, 2024
1 parent 085b1e8 commit 8279e4f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { availableThemes, useUserUIPreferences } from '../../../state/theme';
import { hexToRGBA } from '../../../libs/css';
import { useAccountsState, useActiveConfig } from '../../../state/wallet';
import { useShouldShowSecurityPage } from '../../../pages/settings/Security';
import { HideOnReview } from '../../ios/HideOnReview';

const PreferencesAsideContainer = styled.div`
width: fit-content;
Expand Down Expand Up @@ -116,14 +117,16 @@ export const PreferencesAsideMenu = () => {
)}
</NavLink>
)}
<NavLink to={AppRoute.settings + SettingsRoute.pro}>
{({ isActive }) => (
<AsideMenuItemStyled isSelected={isActive}>
<TonkeeperSkeletIcon />
<Label2>{t('tonkeeper_pro')}</Label2>
</AsideMenuItemStyled>
)}
</NavLink>
<HideOnReview>
<NavLink to={AppRoute.settings + SettingsRoute.pro}>
{({ isActive }) => (
<AsideMenuItemStyled isSelected={isActive}>
<TonkeeperSkeletIcon />
<Label2>{t('tonkeeper_pro')}</Label2>
</AsideMenuItemStyled>
)}
</NavLink>
</HideOnReview>
{proState?.subscription.valid && (
<NavLink to={AppRoute.settings + SettingsRoute.theme}>
{({ isActive }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { DesktopHeaderBalance, DesktopHeaderContainer } from './DesktopHeaderEle
import { useSendTransferNotification } from '../../modals/useSendTransferNotification';
import { isStandardTonWallet } from '@tonkeeper/core/dist/entries/wallet';
import { Network } from '@tonkeeper/core/dist/entries/network';
import { useIsOnIosReview } from '../../../hooks/ios';
import { HideOnReview } from '../../ios/HideOnReview';

const ButtonsContainer = styled.div`
Expand Down Expand Up @@ -52,7 +51,6 @@ const LinkStyled = styled(Link)`
`;

const DesktopWalletHeaderPayload = () => {
const isOnReview = useIsOnIosReview();
usePreFetchRates();
const { data: balance, isLoading } = useWalletTotalBalance();
const sdk = useAppSdk();
Expand Down
5 changes: 3 additions & 2 deletions packages/uikit/src/components/settings/ProSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { Input } from '../fields/Input';
import { WalletEmoji } from '../shared/emoji/WalletEmoji';
import { ConfirmView } from '../transfer/ConfirmView';
import { useNotifyError } from '../../hooks/useNotification';
import { HideOnReview } from '../ios/HideOnReview';

const Block = styled.div`
display: flex;
Expand Down Expand Up @@ -451,11 +452,11 @@ export const ProSettingsContent: FC<{ showLogo?: boolean; onSuccess?: () => void

export const ProSettings: FC = () => {
return (
<>
<HideOnReview>
<SubHeader />
<InnerBody>
<ProSettingsContent />
</InnerBody>
</>
</HideOnReview>
);
};
1 change: 0 additions & 1 deletion packages/uikit/src/desktop-pages/coin/DesktopCoinPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { useTonendpointBuyMethods } from '../../state/tonendpoint';
import { useActiveTonNetwork, useIsActiveWalletWatchOnly } from '../../state/wallet';
import { OtherHistoryFilters } from '../../components/desktop/history/DesktopHistoryFilters';
import { Network } from '@tonkeeper/core/dist/entries/network';
import { useIsOnIosReview } from '../../hooks/ios';
import { HideOnReview } from '../../components/ios/HideOnReview';

export const DesktopCoinPage = () => {
Expand Down

0 comments on commit 8279e4f

Please sign in to comment.