Skip to content

Commit 705fffd

Browse files
committed
fix: restore original text content and styling
1 parent d7f28b3 commit 705fffd

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

frontend/web/components/pages/organisation-settings/OrganisationSettingsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const OrganisationSettingsPage: FC = () => {
121121
return (
122122
<div className='app-container container'>
123123
<PageTitle title='Organisation Settings' />
124-
<Tabs urlParam='tab' className='mt-0' uncontrolled>
124+
<Tabs urlParam='tab' className='mt-0' uncontrolled hideNavOnSingleTab>
125125
{tabs.map(({ component, key, label }) => (
126126
<TabItem key={key} tabLabel={label} data-test={key}>
127127
{component}

frontend/web/components/pages/organisation-settings/hooks/useUpdateOrganisationWithToast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const useUpdateOrganisationWithToast = () => {
2222
body,
2323
id: String(organisationId),
2424
}).unwrap()
25-
toast(options?.successMessage || 'Organisation updated')
25+
toast(options?.successMessage || 'Saved organisation')
2626
// Refresh AccountStore to update navbar and other components
2727
// that rely on the legacy store
2828
AppActions.refreshOrganisation()

frontend/web/components/pages/organisation-settings/tabs/general-tab/sections/OrganisationInformation.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,41 +20,43 @@ export const OrganisationInformation = ({
2020

2121
await updateOrganisationWithToast({ name }, organisation.id, {
2222
errorMessage: 'Failed to save organisation. Please try again.',
23-
successMessage: 'Organisation Saved',
23+
successMessage: 'Saved organisation',
2424
})
2525
}
2626

2727
return (
2828
<FormGroup>
2929
<form onSubmit={handleSubmit} className='d-flex flex-column gap-2 m-0'>
30-
<Row className='align-items-start'>
31-
<Flex className='ml-0'>
32-
<Input
30+
<Row>
31+
<Flex>
32+
<InputGroup
33+
title='Organisation Name'
3334
value={name}
34-
inputClassName='full-width'
35-
name='org-name'
35+
inputClassName='input--wide'
36+
name='organisation-name'
3637
data-test='organisation-name'
3738
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
3839
setName(Utils.safeParseEventValue(e))
3940
}
4041
isValid={!!name && name.length > 0}
4142
type='text'
42-
placeholder='My Organisation Name'
43+
placeholder='My Organisation'
44+
inputProps={{
45+
className: 'full-width',
46+
}}
4347
/>
4448
</Flex>
45-
</Row>
4649

47-
<div className='text-right'>
4850
<Button
4951
type='submit'
5052
id='save-org-btn'
5153
data-test='save-org-btn'
5254
disabled={isSaving || !name}
5355
className='ml-3'
5456
>
55-
{isSaving ? 'Updating' : 'Update'}
57+
{isSaving ? 'Updating' : 'Update Name'}
5658
</Button>
57-
</div>
59+
</Row>
5860
</form>
5961
</FormGroup>
6062
)

0 commit comments

Comments
 (0)