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 066270ef0a..99389282e1 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/home.json +++ b/apps/remix-ide/src/app/tabs/locales/en/home.json @@ -68,7 +68,7 @@ "home.seeAllTutorials": "See all tutorials", "home.maintainedByRemix": "Maintained by Remix", "home.gitCloneTooltip": "Clone a Github repo to a new workspace", - "home.gistTooltip": "Import gist to a workspace", + "home.gistTooltip": "Open Gist repo", "home.newFileTooltip": "Add a new file to a workspace" } 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 ba7124ae00..e8c01e1891 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx @@ -168,7 +168,11 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
} tooltipTextClasses="border bg-light text-dark p-1 pr-3"> - @@ -181,9 +185,9 @@ function HomeTabFile({ plugin }: HomeTabFileProps) { title="open file" type="file" id="openFileInput" - onChange={(event) => { + onChange={async (event) => { event.stopPropagation() - plugin.verticalIcons.select('filePanel') + await plugin.call('menuicons', 'select', 'filePanel') uploadFile(event.target) }} multiple @@ -193,6 +197,7 @@ function HomeTabFile({ plugin }: HomeTabFileProps) { } tooltipTextClasses="border bg-light text-dark p-1 pr-3" >