chore: Signposting progress should be hidden when user generates a page (#7883)
Fixes: #7660
This commit is contained in:
parent
b972eda083
commit
287f7e2de2
|
|
@ -59,7 +59,10 @@ import { Bold, Label, SelectWrapper } from "./styles";
|
|||
import { GeneratePagePayload } from "./types";
|
||||
import Icon from "components/ads/Icon";
|
||||
import { ReduxActionTypes } from "constants/ReduxActionConstants";
|
||||
import { getIsFirstTimeUserOnboardingEnabled } from "selectors/onboardingSelectors";
|
||||
import {
|
||||
getFirstTimeUserOnboardingComplete,
|
||||
getIsFirstTimeUserOnboardingEnabled,
|
||||
} from "selectors/onboardingSelectors";
|
||||
|
||||
// ---------- Styles ----------
|
||||
|
||||
|
|
@ -247,6 +250,9 @@ function GeneratePageForm() {
|
|||
const isFirstTimeUserOnboardingEnabled = useSelector(
|
||||
getIsFirstTimeUserOnboardingEnabled,
|
||||
);
|
||||
const isFirstTimeUserOnboardingComplete = useSelector(
|
||||
getFirstTimeUserOnboardingComplete,
|
||||
);
|
||||
|
||||
const onSelectDataSource = useCallback(
|
||||
(
|
||||
|
|
@ -512,6 +518,12 @@ function GeneratePageForm() {
|
|||
payload: "",
|
||||
});
|
||||
}
|
||||
if (isFirstTimeUserOnboardingComplete) {
|
||||
dispatch({
|
||||
type: ReduxActionTypes.SET_FIRST_TIME_USER_ONBOARDING_COMPLETE,
|
||||
payload: false,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const handleFormSubmit = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user