This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch release-v1.0 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit c61564cd34c4001b8aea2d3c17cd085cb80f44f2 Author: 青湛 <[email protected]> AuthorDate: Wed Mar 27 15:57:27 2024 +1300 fix: onboard cannot go back (#7223) --- config-ui/src/routes/onboard/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config-ui/src/routes/onboard/index.tsx b/config-ui/src/routes/onboard/index.tsx index addbfc451..203d89a3f 100644 --- a/config-ui/src/routes/onboard/index.tsx +++ b/config-ui/src/routes/onboard/index.tsx @@ -17,6 +17,7 @@ */ import { useState, useEffect } from 'react'; +import { useNavigate } from 'react-router-dom'; import { CloseOutlined } from '@ant-design/icons'; import { theme, Layout } from 'antd'; @@ -54,6 +55,8 @@ export const Onboard = () => { const [projectName, setProjectName] = useState<string>(); const [plugin, setPlugin] = useState<string>(); + const navigate = useNavigate(); + const { token: { colorPrimary }, } = theme.useToken(); @@ -95,7 +98,10 @@ export const Onboard = () => { <> <S.Header> <h1>Connect to your first repository</h1> - <CloseOutlined style={{ fontSize: 18, color: '#70727F', cursor: 'pointer' }} /> + <CloseOutlined + style={{ fontSize: 18, color: '#70727F', cursor: 'pointer' }} + onClick={() => navigate('/')} + /> </S.Header> <S.Content> {[1, 2, 3].includes(step) && (
