Skip to content

Commit

Permalink
Merge pull request #52847 from gijoe0295/gijoe/52795
Browse files Browse the repository at this point in the history
Update new workspace button type and add go to workspace menu item
  • Loading branch information
thienlnam authored Nov 25, 2024
2 parents f97808a + 2fee467 commit b4876bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2477,6 +2477,7 @@ const translations = {
memberNotFound: 'Member not found. To invite a new member to the workspace, please use the invite button above.',
notAuthorized: `You don't have access to this page. If you're trying to join this workspace, just ask the workspace owner to add you as a member. Something else? Reach out to ${CONST.EMAIL.CONCIERGE}.`,
goToRoom: ({roomName}: GoToRoomParams) => `Go to ${roomName} room`,
goToWorkspace: 'Go to workspace',
workspaceName: 'Workspace name',
workspaceOwner: 'Owner',
workspaceType: 'Workspace type',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2500,6 +2500,7 @@ const translations = {
memberNotFound: 'Miembro no encontrado. Para invitar a un nuevo miembro al espacio de trabajo, por favor, utiliza el botón invitar que está arriba.',
notAuthorized: `No tienes acceso a esta página. Si estás intentando unirte a este espacio de trabajo, pide al dueño del espacio de trabajo que te añada como miembro. ¿Necesitas algo más? Comunícate con ${CONST.EMAIL.CONCIERGE}`,
goToRoom: ({roomName}: GoToRoomParams) => `Ir a la sala ${roomName}`,
goToWorkspace: 'Ir al espacio de trabajo',
workspaceName: 'Nombre del espacio de trabajo',
workspaceOwner: 'Dueño',
workspaceType: 'Tipo de espacio de trabajo',
Expand Down
9 changes: 7 additions & 2 deletions src/pages/workspace/WorkspacesListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,13 @@ function WorkspacesListPage() {
// Menu options to navigate to the chat report of #admins and #announce room.
// For navigation, the chat report ids may be unavailable due to the missing chat reports in Onyx.
// In such cases, let us use the available chat report ids from the policy.
const threeDotsMenuItems: PopoverMenuItem[] = [];
const threeDotsMenuItems: PopoverMenuItem[] = [
{
icon: Expensicons.Building,
text: translate('workspace.common.goToWorkspace'),
onSelected: item.action,
},
];

if (isOwner) {
threeDotsMenuItems.push({
Expand Down Expand Up @@ -366,7 +372,6 @@ function WorkspacesListPage() {
const getHeaderButton = () => (
<Button
accessibilityLabel={translate('workspace.new.newWorkspace')}
success
text={translate('workspace.new.newWorkspace')}
onPress={() => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt())}
icon={Expensicons.Plus}
Expand Down

0 comments on commit b4876bc

Please sign in to comment.