From 83bda11ceb172dbd83dbc0e6ca472a0efd780bbb Mon Sep 17 00:00:00 2001 From: iwanttobealight Date: Wed, 10 Apr 2019 22:51:13 +0300 Subject: [PATCH] feat(hello): add CurrencySwitch --- front/src/features/hello/Hello.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/front/src/features/hello/Hello.tsx b/front/src/features/hello/Hello.tsx index d1702a33..6c4138d1 100644 --- a/front/src/features/hello/Hello.tsx +++ b/front/src/features/hello/Hello.tsx @@ -5,7 +5,7 @@ import { useCallback } from 'react' import * as styles from './Hello.css' import { setDefaultCurrency } from '@front/domain/user/actions/setDefaultCurrency' -import { getUserProfile } from '@front/domain/user/actions/getUserProfile' +import { CurrencySwitch } from '@front/ui/components/controls/currency-switch' import { Currency } from '@shared/enum/Currency' export const Hello = () => { @@ -16,20 +16,13 @@ export const Hello = () => { await dispatch(setDefaultCurrency(currency)) }, []) - const getProfile = useCallback(async () => { - await dispatch(getUserProfile()) - }, []) - return (

Checkmoney Space
- - Wellcome! +