Skip to content

Commit

Permalink
fix(suite): Add contacts to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jvaclavik committed Dec 11, 2024
1 parent 9d0fa7c commit f144b57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 5 additions & 4 deletions packages/suite-web/src/support/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ const components: Record<PageName, LazyExoticComponent<ComponentType<any>>> = {
() => import(/* webpackChunkName: "password-manager" */ 'src/views/password-manager'),
),

'settings-contacts': lazy(
() => import(/* webpackChunkName: "contacts" */ 'src/views/contacts'),
),

// settings
'settings-index': lazy(() =>
import(
Expand All @@ -151,6 +147,11 @@ const components: Record<PageName, LazyExoticComponent<ComponentType<any>>> = {
/* webpackChunkName: "settings" */ 'src/views/settings/SettingsDevice/SettingsDevice'
).then(({ SettingsDevice }) => ({ default: SettingsDevice })),
),
'settings-contacts': lazy(() =>
import(/* webpackChunkName: "contacts" */ 'src/views/contacts').then(
({ SettingsContacts }) => ({ default: SettingsContacts }),
),
),
};

const AppRouter = () => (
Expand Down
4 changes: 1 addition & 3 deletions packages/suite/src/views/contacts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const Contacts = ({ device }: { device: TrezorDevice }) => {
);
};

const ContactsView = () => {
export const SettingsContacts = () => {
const device = useSelector(selectDevice);

if (!device) {
Expand All @@ -243,5 +243,3 @@ const ContactsView = () => {
</SettingsLayout>
);
};

export default ContactsView;

0 comments on commit f144b57

Please sign in to comment.