From 869b392818ce62a8d9f0bad533fd2cb4f98d0818 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 1 May 2024 23:51:51 +0100 Subject: [PATCH] change text for translation. working on file section --- .../src/app/tabs/locales/en/home.json | 2 +- .../src/lib/components/homeTabFile.tsx | 106 +++++++++--------- .../src/lib/components/homeTabGetStarted.tsx | 40 ++++++- 3 files changed, 90 insertions(+), 58 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/locales/en/home.json b/apps/remix-ide/src/app/tabs/locales/en/home.json index 6bb00dfdc9..fb593c9aac 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/home.json +++ b/apps/remix-ide/src/app/tabs/locales/en/home.json @@ -61,7 +61,7 @@ "home.startCodingPlayground": "Open a playground for prototyping and simple learning", "home.openFile": "Open File", "home.openFileTooltip": "Open a File from your File System", - "home.accessFileSystem": "Access File System", + "home.accessFileSystem": "Connect to local filesystem", "home.loadFrom": "Load from", "home.resources": "Resources", "home.connectToLocalhost": "Connect to Localhost", diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx index ef07b97aaa..bae39600de 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx @@ -253,6 +253,28 @@ contract HelloWorld {
+ {(state.recentWorkspaces[0] || state.recentWorkspaces[1] || state.recentWorkspaces[2]) && ( +
+ + {state.recentWorkspaces[0] && state.recentWorkspaces[0] !== '' && ( + handleSwichToRecentWorkspace(e, state.recentWorkspaces[0])}> + {state.recentWorkspaces[0]} + + )} + {state.recentWorkspaces[1] && state.recentWorkspaces[1] !== '' && ( + handleSwichToRecentWorkspace(e, state.recentWorkspaces[1])}> + {state.recentWorkspaces[1]} + + )} + {state.recentWorkspaces[2] && state.recentWorkspaces[2] !== '' && ( + handleSwichToRecentWorkspace(e, state.recentWorkspaces[2])}> + {state.recentWorkspaces[2]} + + )} +
+ )} @@ -293,63 +315,32 @@ contract HelloWorld { /> - } - tooltipTextClasses="border bg-light text-dark p-1 pr-3" + - + GitHub + +
- {(state.recentWorkspaces[0] || state.recentWorkspaces[1] || state.recentWorkspaces[2]) && ( -
- - {state.recentWorkspaces[0] && state.recentWorkspaces[0] !== '' && ( - handleSwichToRecentWorkspace(e, state.recentWorkspaces[0])}> - {state.recentWorkspaces[0]} - - )} - {state.recentWorkspaces[1] && state.recentWorkspaces[1] !== '' && ( - handleSwichToRecentWorkspace(e, state.recentWorkspaces[1])}> - {state.recentWorkspaces[1]} - - )} - {state.recentWorkspaces[2] && state.recentWorkspaces[2] !== '' && ( - handleSwichToRecentWorkspace(e, state.recentWorkspaces[2])}> - {state.recentWorkspaces[2]} - - )} -
- )} + -