Skip to content

Commit

Permalink
refactor: remove legacy settings selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Sep 11, 2023
1 parent 1375cd5 commit e6eecb6
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/app/components/request-password.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FormEvent, useCallback, useState } from 'react';

import { Box, Input, Stack } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { styled } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';

Expand Down
2 changes: 1 addition & 1 deletion src/app/features/current-account/current-account-name.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Suspense, memo } from 'react';

import { memoWithAs } from '@stacks/ui-core';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Box, BoxProps, styled } from 'leather-styles/jsx';

import { HasChildren } from '@app/common/has-children';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';

import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Box, Flex, Stack, styled } from 'leather-styles/jsx';

import { LeatherButton } from '@app/components/button/button';
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/theme-drawer/theme-list.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback } from 'react';

import { Flex, FlexProps } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';

import { useAnalytics } from '@app/common/hooks/analytics/use-analytics';
import { UserSelectedTheme, themeLabelMap, useThemeSwitcher } from '@app/common/theme-provider';
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/home/components/account-info-card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMediaQuery } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Box, Divider, Flex, styled } from 'leather-styles/jsx';

import { useCurrentAccountDisplayName } from '@app/common/hooks/account/use-account-names';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ButtonProps } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { Flex } from 'leather-styles/jsx';

import { LeatherButton } from '@app/components/button/button';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FiTrash2 } from 'react-icons/fi';

import { Box, BoxProps, Button, Flex, Stack } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { styled } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/sign-out-confirm/sign-out-confirm.layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Flex } from '@stacks/ui';
import { SettingsSelectors } from '@tests-legacy/integration/settings.selectors';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
import { useFormik } from 'formik';
import { Box, HStack, styled } from 'leather-styles/jsx';
import { token } from 'leather-styles/tokens';
Expand Down
22 changes: 0 additions & 22 deletions tests-legacy/integration/settings.selectors.ts

This file was deleted.

0 comments on commit e6eecb6

Please sign in to comment.