chore: redirect to home page at the end of onboarding (#12961)
This commit is contained in:
parent
6f311944be
commit
7d646bf11c
|
|
@ -22,7 +22,8 @@ import {
|
||||||
} from "@appsmith/constants/messages";
|
} from "@appsmith/constants/messages";
|
||||||
import { getTypographyByKey } from "constants/DefaultTheme";
|
import { getTypographyByKey } from "constants/DefaultTheme";
|
||||||
import { Colors } from "constants/Colors";
|
import { Colors } from "constants/Colors";
|
||||||
import { builderURL } from "RouteBuilder";
|
import history from "utils/history";
|
||||||
|
import { APPLICATIONS_URL } from "constants/routes";
|
||||||
|
|
||||||
const Container = styled.div`
|
const Container = styled.div`
|
||||||
background-color: ${(props) => props.theme.colors.guidedTour.card.background};
|
background-color: ${(props) => props.theme.colors.guidedTour.card.background};
|
||||||
|
|
@ -104,6 +105,7 @@ function CongratulationsView() {
|
||||||
setShow(false);
|
setShow(false);
|
||||||
dispatch(showPostCompletionMessage(false));
|
dispatch(showPostCompletionMessage(false));
|
||||||
setPostWelcomeTourState(false);
|
setPostWelcomeTourState(false);
|
||||||
|
history.push(APPLICATIONS_URL);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!show) return null;
|
if (!show) return null;
|
||||||
|
|
@ -155,11 +157,10 @@ function CongratulationsView() {
|
||||||
<Button
|
<Button
|
||||||
className="t--start-building"
|
className="t--start-building"
|
||||||
height="38"
|
height="38"
|
||||||
href={builderURL()}
|
|
||||||
onClick={hideMessage}
|
onClick={hideMessage}
|
||||||
size={Size.large}
|
size={Size.large}
|
||||||
|
tag="button"
|
||||||
text={createMessage(END_BUTTON_TEXT)}
|
text={createMessage(END_BUTTON_TEXT)}
|
||||||
type="button"
|
|
||||||
/>
|
/>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user