From cd35a1c8cd2bfb899db2d11f4be13bc530aaba21 Mon Sep 17 00:00:00 2001 From: Po-Chun Chiu <57251712+EiffelFly@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:26:38 +0800 Subject: [PATCH] feat(pipeline-builder): User can view staff pick templates on pipeline list page (#561) Because - We need template to improve usability This commit - User can view staff pick templates on pipeline list page --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/pages/_app.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 924492eaf0..d6cf162bb0 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@hookform/resolvers": "^3.1.1", "@instill-ai/design-system": "^0.53.0", "@instill-ai/design-tokens": "^0.3.2", - "@instill-ai/toolkit": "^0.68.0-rc.76", + "@instill-ai/toolkit": "^0.68.0-rc.91", "@radix-ui/react-checkbox": "^1.0.3", "@radix-ui/react-collapsible": "^1.0.2", "@radix-ui/react-dialog": "^1.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0285ff4936..a917ffc283 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,8 +20,8 @@ dependencies: specifier: ^0.3.2 version: 0.3.2(tailwindcss@3.3.1) '@instill-ai/toolkit': - specifier: ^0.68.0-rc.76 - version: 0.68.0-rc.76(@instill-ai/design-system@0.53.0)(@instill-ai/design-tokens@0.3.2)(@types/react-dom@18.2.0)(@types/react@18.2.0)(next@13.4.2)(react-dom@18.2.0)(react@18.2.0) + specifier: ^0.68.0-rc.91 + version: 0.68.0-rc.91(@instill-ai/design-system@0.53.0)(@instill-ai/design-tokens@0.3.2)(@types/react-dom@18.2.0)(@types/react@18.2.0)(next@13.4.2)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-checkbox': specifier: ^1.0.3 version: 1.0.3(react-dom@18.2.0)(react@18.2.0) @@ -2375,8 +2375,8 @@ packages: tailwindcss: 3.3.1(postcss@8.4.14) dev: false - /@instill-ai/toolkit@0.68.0-rc.76(@instill-ai/design-system@0.53.0)(@instill-ai/design-tokens@0.3.2)(@types/react-dom@18.2.0)(@types/react@18.2.0)(next@13.4.2)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-Ph4ys5CUKgiZdu3ors/GakFVrXpiwDfgZvGBASdhkx4xe8wQ9ZDxgeNeu+ODwpgGduUjfiwJWY0I1tFLoTq+OQ==} + /@instill-ai/toolkit@0.68.0-rc.91(@instill-ai/design-system@0.53.0)(@instill-ai/design-tokens@0.3.2)(@types/react-dom@18.2.0)(@types/react@18.2.0)(next@13.4.2)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-WSdFKDKvSnx8xRbJk39hSPbeKOCpj3ZqZ+NHI85cd0Qay1bNqscmbqfTUxkBDk69JRdKzLIgCk5xxIU++q4m0Q==} peerDependencies: '@instill-ai/design-system': 0.53.0 '@instill-ai/design-tokens': 0.3.2 diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 178195486a..068a2ac1d7 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -49,7 +49,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) { const { dismiss: dismissToast } = useToast(); function isPipelineDetailPage(path: string) { - if (path.split("/")[1] === "pipelines" && path.split("/")[2]) { + if (path.split("/")[2] === "pipelines" && path.split("/")[3]) { return true; } return false;