This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 0eb7e7db1 fix: onboard cannot go back (#7223)
0eb7e7db1 is described below
commit 0eb7e7db197fa71304e27f1c50c31bb7bf96bc42
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) && (