Skip to content

Commit

Permalink
fix: rename chatbox title (#1094)
Browse files Browse the repository at this point in the history
* fix: rename chatbox title

* fix: rename chatbox title

* fix: rename the chatbox drawer title to Item name chat

* Update src/langs/fr.json

Co-authored-by: Basile Spaenlehauer <[email protected]>

* Update src/components/item/ItemMain.tsx

Co-authored-by: Basile Spaenlehauer <[email protected]>

* fix: rename the chatbox drawer title to Itemname chat

---------

Co-authored-by: Basile Spaenlehauer <[email protected]>
  • Loading branch information
mariembencheikh and spaenleh authored Mar 26, 2024
1 parent a12bedd commit 4cef3af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/components/item/ItemMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { Box, Divider, Typography, styled } from '@mui/material';
import { DiscriminatedItem } from '@graasp/sdk';
import { DrawerHeader } from '@graasp/ui';

import { BUILDER } from '@/langs/constants';

import { RIGHT_MENU_WIDTH } from '../../config/constants';
import { useBuilderTranslation } from '../../config/i18n';
import { ITEM_MAIN_CLASS } from '../../config/selectors';
import { BUILDER } from '../../langs/constants';
import Chatbox from '../common/Chatbox';
import { useLayoutContext } from '../context/LayoutContext';
import ItemPanel from './ItemPanel';
Expand Down Expand Up @@ -62,7 +63,9 @@ const ItemMain = ({ id, children, item }: Props): JSX.Element => {
direction="rtl"
>
<Typography variant="h6">
{translateBuilder(BUILDER.ITEM_CHATBOX_TITLE)}
{translateBuilder(BUILDER.ITEM_CHATBOX_TITLE, {
name: item.name,
})}
</Typography>
</DrawerHeader>
<Divider />
Expand Down
2 changes: 1 addition & 1 deletion src/langs/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"INVITATIONS_TABLE_INVITATION_HEADER": "Invitation",
"INVITATIONS_TABLE_PERMISSION_HEADER": "Permission",
"ITEM_CATEGORIES_SELECTION_TITLE": "Category",
"ITEM_CHATBOX_TITLE": "Chatbox",
"ITEM_CHATBOX_TITLE": "\"{{name}}\" Chatbox ",
"ITEM_MEMBERSHIP_PERMISSION_LABEL": "Permission",
"ITEM_MEMBERSHIPS_TABLE_ACTIONS_HEADER": "Actions",
"ITEM_MEMBERSHIPS_TABLE_CANNOT_DELETE_PARENT_TOOLTIP": "This membership is defined in the parent item and cannot be deleted here.",
Expand Down
2 changes: 1 addition & 1 deletion src/langs/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"INVITATIONS_TABLE_INVITATION_HEADER": "Invitation",
"INVITATIONS_TABLE_PERMISSION_HEADER": "Permission",
"ITEM_CATEGORIES_SELECTION_TITLE": "Catégories",
"ITEM_CHATBOX_TITLE": "Chatbox",
"ITEM_CHATBOX_TITLE": "Discussion pour \"{{name}}\"",
"ITEM_MEMBERSHIP_PERMISSION_LABEL": "Permission",
"ITEM_MEMBERSHIPS_TABLE_ACTIONS_HEADER": "Actions",
"ITEM_MEMBERSHIPS_TABLE_CANNOT_DELETE_PARENT_TOOLTIP": "Cette permission est définie dans l'élément parent, et ne peut pas être supprimée ici.",
Expand Down

0 comments on commit 4cef3af

Please sign in to comment.