Skip to content

Commit

Permalink
Update homeTabFile.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
maradini77 authored and Aniket-Engg committed Jan 10, 2025
1 parent 876b981 commit afa49e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/remix-ui/home-tab/src/lib/components/homeTabFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
plugin.verticalIcons.select('filePanel')
}

const handleSwichToRecentWorkspace = async (e, workspaceName) => {
const handleSwitchToRecentWorkspace = async (e, workspaceName) => {
e.preventDefault()
plugin.call('sidePanel', 'showContent', 'filePanel')
plugin.verticalIcons.select('filePanel')
Expand All @@ -146,17 +146,17 @@ function HomeTabFile({ plugin }: HomeTabFileProps) {
Recent Workspaces
</label>
{state.recentWorkspaces[0] && state.recentWorkspaces[0] !== '' && (
<a className="cursor-pointer mb-1 ml-2" href="#" onClick={(e) => handleSwichToRecentWorkspace(e, state.recentWorkspaces[0])}>
<a className="cursor-pointer mb-1 ml-2" href="#" onClick={(e) => handleSwitchToRecentWorkspace(e, state.recentWorkspaces[0])}>
{state.recentWorkspaces[0]}
</a>
)}
{state.recentWorkspaces[1] && state.recentWorkspaces[1] !== '' && (
<a className="cursor-pointer mb-1 ml-2" href="#" onClick={(e) => handleSwichToRecentWorkspace(e, state.recentWorkspaces[1])}>
<a className="cursor-pointer mb-1 ml-2" href="#" onClick={(e) => handleSwitchToRecentWorkspace(e, state.recentWorkspaces[1])}>
{state.recentWorkspaces[1]}
</a>
)}
{state.recentWorkspaces[2] && state.recentWorkspaces[2] !== '' && (
<a className="cursor-pointer ml-2" href="#" onClick={(e) => handleSwichToRecentWorkspace(e, state.recentWorkspaces[2])}>
<a className="cursor-pointer ml-2" href="#" onClick={(e) => handleSwitchToRecentWorkspace(e, state.recentWorkspaces[2])}>
{state.recentWorkspaces[2]}
</a>
)}
Expand Down

0 comments on commit afa49e7

Please sign in to comment.