@@ -19,6 +19,7 @@ import {
1919 UserAccountProvider ,
2020} from 'src/accounts/context/userAccount'
2121import AccountTabContainer from 'src/accounts/AccountTabContainer'
22+ import AccountHeader from 'src/accounts/AccountHeader'
2223
2324import { SwitchAccountOverlay } from 'src/accounts/SwitchAccountOverlay'
2425
@@ -64,53 +65,52 @@ const AccountAboutPage: FC = () => {
6465 const labelStyle = { marginBottom : 8 }
6566
6667 return (
67- < Page titleTag = { pageTitleSuffixer ( [ 'About' , 'Account' ] ) } >
68- < AccountTabContainer activeTab = "about" >
69- < >
70- { userAccounts && userAccounts . length >= 2 && (
71- < React . Fragment >
72- < Button
73- text = "Switch Account"
74- icon = { IconFont . Switch_New }
75- onClick = { showSwitchAccountDialog }
76- testID = "user-account-switch-btn"
77- />
78- < hr />
79- </ React . Fragment >
80- ) }
81-
82- < h2 data-testid = "account-settings--header" > Account Details </ h2 >
83- < div style = { labelStyle } > Account Name</ div >
84- < FlexBox direction = { FlexDirection . Row } margin = { ComponentSize . Medium } >
85- < Input
86- name = "accountName"
87- testID = "input--active-account-name"
88- type = { InputType . Text }
89- value = { activeAcctName }
90- onChange = { updateAcctName }
91- size = { ComponentSize . Medium }
92- style = { inputStyle }
93- />
68+ < AccountTabContainer activeTab = "about" >
69+ < >
70+ { userAccounts && userAccounts . length >= 2 && (
71+ < React . Fragment >
9472 < Button
95- onClick = { ( ) =>
96- handleRenameActiveAccount ( activeAccount . id , activeAcctName )
97- }
98- testID = "rename-account--button"
99- text = "Save"
73+ text = "Switch Account"
74+ icon = { IconFont . Switch_New }
75+ onClick = { showSwitchAccountDialog }
76+ testID = "user-account-switch-btn"
10077 />
101- </ FlexBox >
102- < Overlay visible = { isSwitchAccountVisible } >
103- < SwitchAccountOverlay onDismissOverlay = { closeSwitchAccountDialog } />
104- </ Overlay >
105- </ >
106- </ AccountTabContainer >
107- </ Page >
78+ < hr />
79+ </ React . Fragment >
80+ ) }
81+
82+ < h2 data-testid = "account-settings--header" > Account Details </ h2 >
83+ < div style = { labelStyle } > Account Name</ div >
84+ < FlexBox direction = { FlexDirection . Row } margin = { ComponentSize . Medium } >
85+ < Input
86+ name = "accountName"
87+ testID = "input--active-account-name"
88+ type = { InputType . Text }
89+ value = { activeAcctName }
90+ onChange = { updateAcctName }
91+ size = { ComponentSize . Medium }
92+ style = { inputStyle }
93+ />
94+ < Button
95+ onClick = { ( ) =>
96+ handleRenameActiveAccount ( activeAccount . id , activeAcctName )
97+ }
98+ testID = "rename-account--button"
99+ text = "Save"
100+ />
101+ </ FlexBox >
102+ < Overlay visible = { isSwitchAccountVisible } >
103+ < SwitchAccountOverlay onDismissOverlay = { closeSwitchAccountDialog } />
104+ </ Overlay >
105+ </ >
106+ </ AccountTabContainer >
108107 )
109108}
110109
111110const AccountPage : FC = ( ) => {
112111 return (
113112 < Page titleTag = { pageTitleSuffixer ( [ 'Account Settings Page' ] ) } >
113+ < AccountHeader testID = "account-page--header" />
114114 < UserAccountProvider >
115115 < AccountAboutPage />
116116 </ UserAccountProvider >
0 commit comments