Skip to content

Commit

Permalink
reconstruct nav and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sin-bufan committed Jan 31, 2024
1 parent 5332d5b commit 8df7f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/client/dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function BuildLayout () {
const [selectModel, setSelectModel] = useState<ModelStream>()
const [selectComposite, setSelectComposite] = useState<DappCompositeDto>()
const { pathname } = useLocation()
const defaultKey = pathname.split('/explore/')[1]
const defaultKey = pathname.split('/build/')[1]
const PAGES = [
{
id: 'editor',
Expand Down
8 changes: 4 additions & 4 deletions packages/client/dashboard/src/hooks/useGuideSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,28 @@ export function useGuideStepsState(dapps: ClientDApp[], loadingDApps: boolean) {
useEffect(() => {
if (!validStep(1)) {
if (!validStep2SubStep(0)) {
const isModelEditor = location.pathname.endsWith('model-editor')
const isModelEditor = location.pathname.endsWith('editor')
if (isModelEditor) {
completeStep2SubStep(0)
}
}

if (!validStep2SubStep(1)) {
const isModelPlayground = location.pathname.endsWith('model-playground')
const isModelPlayground = location.pathname.endsWith('playground')
if (isModelPlayground) {
completeStep2SubStep(1)
}
}

if (!validStep2SubStep(2)) {
const isModelSdk = location.pathname.endsWith('model-sdk')
const isModelSdk = location.pathname.endsWith('sdk')
if (isModelSdk) {
completeStep2SubStep(2)
}
}

if (!validStep2SubStep(3)) {
const isStatistic = location.pathname.endsWith('statistic')
const isStatistic = location.pathname.endsWith('metrics')
if (isStatistic) {
completeStep2SubStep(3)
}
Expand Down

0 comments on commit 8df7f9f

Please sign in to comment.