Skip to content

Commit 254b764

Browse files
committed
fix: fix texts in some file actions
1 parent 7949f11 commit 254b764

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

components/projects/CreateProject/CreateProjectForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const CreateProjectForm = ({
176176
}}
177177
>
178178
<FormLabel component="legend" sx={{ mb: 1 }}>
179-
Unit default privacy: {defaultPrivacy.split("_").join(" ").toLowerCase()}
179+
Unit default privacy: {defaultPrivacy.split("_").join(" ").toLocaleLowerCase()}
180180
</FormLabel>
181181

182182
<Field

components/projects/CreateProject/CreateProjectListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const CreateProjectListItem = ({ unit }: CreateProjectListItemProps) => {
2222
<ListItemButton onClick={() => setOpen(true)}>
2323
<ListItemText
2424
primary="Create Project"
25-
secondary="Creates a new project in the currently selected context"
25+
secondary="Create a new project in the selected unit"
2626
/>
2727
<ListItemIcon>
2828
<NoteAdd color="action" />

features/userSettings/UserSettingsContent/ContextSection/contextActions/CreateDefaultUnitListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const CreateDefaultUnitListItem = () => {
3737
<ListItemButton onClick={() => void createDefaultUnitHandler()}>
3838
<ListItemText
3939
primary="Create personal unit"
40-
secondary="Creates a new unit in the default organisation"
40+
secondary="Create a new unit in the default organisation"
4141
/>
4242
<ListItemIcon>
4343
<CreateNewFolder color="action" />

features/userSettings/UserSettingsContent/ContextSection/contextActions/EditUnitListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const EditUnitListItem = ({ unit }: EditUnitListItemProps) => {
1919
return (
2020
<>
2121
<ListItemButton onClick={() => setOpen((open) => !open)}>
22-
<ListItemText primary="Edit Unit" secondary="Add and remove unit editors" />
22+
<ListItemText primary="Edit Unit" secondary="Modify a unit" />
2323
<ListItemIcon>
2424
<EditIcon color="action" />
2525
</ListItemIcon>

utils/app/language.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
export const capitalise = (text: string) => text.replace(/\b\w/gu, (l) => l.toLocaleUpperCase());
2+
3+
export const shoutSnakeToLowerCase = (text: string) =>
4+
text.split("_").join(" ").toLocaleLowerCase();

0 commit comments

Comments
 (0)