Skip to content

Commit

Permalink
Fix for 3.2 #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Sep 25, 2023
1 parent 2319321 commit 77a5e6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { IMenuNode } from '@pnp/sp/navigation'
import strings from 'ProjectWebPartsStrings'
import React, { FC, useState } from 'react'
import { useProjectInformationContext } from '../context'
import { CLOSE_PANEL } from '../reducer'
import { CLOSE_DIALOG } from '../reducer'
import { ProjectSetupCustomAction } from './ProjectSetupCustomAction'

export const CreateParentDialog: FC = () => {
Expand Down Expand Up @@ -50,7 +50,7 @@ export const CreateParentDialog: FC = () => {
return (
<Dialog
hidden={context.state.activeDialog !== 'CreateParentDialog'}
onDismiss={() => context.dispatch(CLOSE_PANEL())}
onDismiss={() => context.dispatch(CLOSE_DIALOG())}
dialogContentProps={{
type: DialogType.largeHeader,
title: strings.CreateParentModalTitle,
Expand All @@ -61,7 +61,7 @@ export const CreateParentDialog: FC = () => {
<DialogFooter>
<DefaultButton
text={strings.CancelText}
onClick={() => context.dispatch(CLOSE_PANEL())}
onClick={() => context.dispatch(CLOSE_DIALOG())}
/>
<PrimaryButton
text={strings.RedoText}
Expand Down

0 comments on commit 77a5e6a

Please sign in to comment.