pull/4774/head
Joseph Izang 7 months ago
parent 5056e35f77
commit f13f775c7a
  1. 8
      libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx
  2. 7
      libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx

@ -142,7 +142,7 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) {
} }
const [activeButtonClass, setActiveButtonClass] = useState('') const [activeButtonClass, setActiveButtonClass] = useState('')
const [activeButton, setActiveButton] = useState('homeTabGetStartedPlayground') const [activeButton, setActiveButton] = useState('')
useEffect(() => { useEffect(() => {
const checkWorkspaceName = async () => { const checkWorkspaceName = async () => {
@ -163,7 +163,7 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) {
const currentWorkspace = await plugin.call('filePanel', 'getCurrentWorkspace') const currentWorkspace = await plugin.call('filePanel', 'getCurrentWorkspace')
const allworkspaces = await plugin.call('filePanel', 'getWorkspaces') const allworkspaces = await plugin.call('filePanel', 'getWorkspaces')
console.log('currentWorkspace', { currentWorkspace, allworkspaces }) console.log('currentWorkspace', { currentWorkspace, allworkspaces })
if (target.classList.contains('btn-primary') && target.dataset.id === activeButton) { if (target.classList.contains('btn-primary') && target.dataset.id.includes(activeButton)) {
} }
} }
@ -182,10 +182,10 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) {
key={index} key={index}
className={index === 0 ? 'btn btn-primary border p-2 text-nowrap mr-3' : index === workspaceTemplates.length - 1 ? 'btn border p-2 text-nowrap mr-2' : 'btn border p-2 text-nowrap mr-3'} className={index === 0 ? 'btn btn-primary border p-2 text-nowrap mr-3' : index === workspaceTemplates.length - 1 ? 'btn border p-2 text-nowrap mr-2' : 'btn border p-2 text-nowrap mr-3'}
onClick={(e) => { onClick={(e) => {
manipulateClasses(e)
// createWorkspace(template.templateName) // createWorkspace(template.templateName)
manipulateClasses(e)
}} }}
data-id={`homeTabGetStarted${template.workspaceTitle}`} data-id={`homeTabGetStarted${template.templateName}`}
> >
{template.workspaceTitle} {template.workspaceTitle}
</button> </button>

@ -149,21 +149,22 @@ function HomeTabTitle() {
<a className="remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'webSite'])} target="__blank" href="https://remix-project.org"> <a className="remixui_home_text" onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'webSite'])} target="__blank" href="https://remix-project.org">
<FormattedMessage id="home.website" /> <FormattedMessage id="home.website" />
</a> </a>
<a {/* <a
className="pl-2 remixui_home_text" className="pl-2 remixui_home_text"
onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'documentation'])} onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'documentation'])}
target="__blank" target="__blank"
href="https://remix-ide.readthedocs.io/en/latest" href="https://remix-ide.readthedocs.io/en/latest"
> >
<FormattedMessage id="home.documentation" /> <FormattedMessage id="home.documentation" />
</a> </a> */}
<a <a
className="pl-2 remixui_home_text" className="pl-2 remixui_home_text"
onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'remixPlugin'])} onClick={() => _paq.push(['trackEvent', 'hometab', 'header', 'remixPlugin'])}
target="__blank" target="__blank"
href="https://remix-plugin-docs.readthedocs.io/en/latest/" href="https://remix-plugin-docs.readthedocs.io/en/latest/"
> >
<FormattedMessage id="home.remixPlugin" /> {/* <FormattedMessage id="home.remixPlugin" /> */}
Remix Desktop
</a> </a>
<a <a
className="pl-2 remixui_home_text" className="pl-2 remixui_home_text"

Loading…
Cancel
Save