Keep the photo a community already uploaded when they pick a template from the wizard.
This commit is contained in:
1 parent
6bf890fa78
commit
5dc936834c
6 files changed
+58
-17
No files matched your search
@@ -866,24 +866,18 @@ function CreateFlowLayoutContent({
|
||||
valuesCount={customizeDialog?.valuesCount ?? 0}
|
||||
cardsCount={customizeDialog?.cardsCount ?? 0}
|
||||
initialTitle={
|
||||
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
|
||||
? typeof state.title === "string"
|
||||
? state.title
|
||||
: ""
|
||||
fromCreateWizard && typeof state.title === "string"
|
||||
? state.title
|
||||
: ""
|
||||
}
|
||||
initialDescription={
|
||||
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
|
||||
? typeof state.communityContext === "string"
|
||||
? state.communityContext
|
||||
: ""
|
||||
fromCreateWizard && typeof state.communityContext === "string"
|
||||
? state.communityContext
|
||||
: ""
|
||||
}
|
||||
initialLocation={
|
||||
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true
|
||||
? typeof state.communityLocation === "string"
|
||||
? state.communityLocation
|
||||
: ""
|
||||
fromCreateWizard && typeof state.communityLocation === "string"
|
||||
? state.communityLocation
|
||||
: ""
|
||||
}
|
||||
onClose={closeCustomizeDialog}
|
||||
|
||||
@@ -145,8 +145,7 @@ export function useTemplateReviewActions({
|
||||
pathname?.includes("/create/review-template/"),
|
||||
);
|
||||
|
||||
const keepInFlowIdentity =
|
||||
fromCreateWizard && state.templateReviewEntryFromCreateFlow === true;
|
||||
const keepInFlowIdentity = fromCreateWizard;
|
||||
|
||||
const confirmReplaceDraft = useCallback(async (): Promise<boolean> => {
|
||||
if (!requestConfirm) return true;
|
||||
@@ -253,6 +252,7 @@ export function useTemplateReviewActions({
|
||||
title: state.title,
|
||||
communityContext: state.communityContext,
|
||||
communityLocation: state.communityLocation,
|
||||
communityAvatarUrl: state.communityAvatarUrl,
|
||||
}
|
||||
: undefined,
|
||||
}),
|
||||
@@ -264,6 +264,7 @@ export function useTemplateReviewActions({
|
||||
markCreateFlowInteraction,
|
||||
replaceState,
|
||||
router,
|
||||
state.communityAvatarUrl,
|
||||
state.communityContext,
|
||||
state.communityLocation,
|
||||
signedIn,
|
||||
|
||||
Reference in new issue
Block a user