22import React , { useState } from 'react' ;
33
44import { Icon } from '@orfium/ictinus' ;
5+ import { IconWrapper } from 'App.style' ;
6+ import { PageTitle , PageWrapper } from 'common.style' ;
7+ import { Tabs } from 'components/Tabs' ;
8+ import { useResponsiveLayout } from 'hooks/useResponsiveSidebar' ;
59import { useHistory } from 'react-router-dom' ;
10+ import urls from 'routing/urls' ;
611
7- import { PageTitle , PageWrapper } from '../../common.style' ;
8- import { Tabs } from '../../components/Tabs' ;
9- import { useResponsiveLayout } from '../../hooks/useResponsiveSidebar' ;
10- import urls from '../../routing/urls' ;
1112import { ComponentWrapper } from '../PatientDetails/PatientDetails.style' ;
12- import ChangePasswordForm from " ./components/ChangePasswordForm" ;
13+ import ChangePasswordForm from ' ./components/ChangePasswordForm' ;
1314
14- const tabs = [
15- { label : 'Change Password' , value : 'change-password' } ,
16- ] ;
15+ const tabs = [ { label : 'Change Password' , value : 'change-password' } ] ;
1716
1817const Settings : React . FC = ( ) => {
1918 const { isDesktop } = useResponsiveLayout ( ) ;
@@ -24,14 +23,16 @@ const Settings: React.FC = () => {
2423 return (
2524 < PageWrapper isDesktop = { isDesktop } >
2625 < PageTitle >
27- < Icon
28- name = "fatArrowLeft"
29- size = { 24 }
30- color = { 'lightGray-700' }
31- onClick = { ( ) => {
32- history . push ( urls . settings ( ) ) ;
33- } }
34- />
26+ < IconWrapper >
27+ < Icon
28+ name = "fatArrowLeft"
29+ size = { 24 }
30+ color = { 'lightGray-700' }
31+ onClick = { ( ) => {
32+ history . push ( urls . patients ( ) ) ;
33+ } }
34+ />
35+ </ IconWrapper >
3536 Settings
3637 </ PageTitle >
3738 < Tabs
@@ -43,11 +44,7 @@ const Settings: React.FC = () => {
4344 shouldDisplayTabs
4445 />
4546 < ComponentWrapper >
46- { activeTab === 'change-password' ? (
47- < ChangePasswordForm />
48- ) : (
49- < div />
50- ) }
47+ { activeTab === 'change-password' ? < ChangePasswordForm /> : < div /> }
5148 </ ComponentWrapper >
5249 </ PageWrapper >
5350 ) ;
0 commit comments