mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: rename component to match file name and american spelling (#7174)
Renames the create project dialog component to match the name of the file (both using the same spelling of dialog)
This commit is contained in:
		
							parent
							
								
									be0f073b89
								
							
						
					
					
						commit
						5f3eae7035
					
				| @ -16,7 +16,7 @@ import { useNavigate } from 'react-router-dom'; | |||||||
| import { Button, Dialog, styled } from '@mui/material'; | import { Button, Dialog, styled } from '@mui/material'; | ||||||
| import { ReactComponent as ProjectIcon } from 'assets/icons/projectIconSmall.svg'; | import { ReactComponent as ProjectIcon } from 'assets/icons/projectIconSmall.svg'; | ||||||
| 
 | 
 | ||||||
| interface ICreateProjectDialogueProps { | interface ICreateProjectDialogProps { | ||||||
|     open: boolean; |     open: boolean; | ||||||
|     onClose: () => void; |     onClose: () => void; | ||||||
| } | } | ||||||
| @ -42,10 +42,10 @@ const StyledProjectIcon = styled(ProjectIcon)(({ theme }) => ({ | |||||||
|     stroke: theme.palette.common.white, |     stroke: theme.palette.common.white, | ||||||
| })); | })); | ||||||
| 
 | 
 | ||||||
| export const CreateProjectDialogue = ({ | export const CreateProjectDialog = ({ | ||||||
|     open, |     open, | ||||||
|     onClose, |     onClose, | ||||||
| }: ICreateProjectDialogueProps) => { | }: ICreateProjectDialogProps) => { | ||||||
|     const { createProject, loading } = useProjectApi(); |     const { createProject, loading } = useProjectApi(); | ||||||
|     const { refetchUser } = useAuthUser(); |     const { refetchUser } = useAuthUser(); | ||||||
|     const { uiConfig } = useUiConfig(); |     const { uiConfig } = useUiConfig(); | ||||||
|  | |||||||
| @ -24,7 +24,7 @@ import { useUiFlag } from 'hooks/useUiFlag'; | |||||||
| import { useProfile } from 'hooks/api/getters/useProfile/useProfile'; | import { useProfile } from 'hooks/api/getters/useProfile/useProfile'; | ||||||
| import { groupProjects } from './group-projects'; | import { groupProjects } from './group-projects'; | ||||||
| import { ProjectGroup } from './ProjectGroup'; | import { ProjectGroup } from './ProjectGroup'; | ||||||
| import { CreateProjectDialogue } from '../Project/CreateProject/CreateProjectDialog/CreateProjectDialog'; | import { CreateProjectDialog } from '../Project/CreateProject/CreateProjectDialog/CreateProjectDialog'; | ||||||
| 
 | 
 | ||||||
| const StyledApiError = styled(ApiError)(({ theme }) => ({ | const StyledApiError = styled(ApiError)(({ theme }) => ({ | ||||||
|     maxWidth: '500px', |     maxWidth: '500px', | ||||||
| @ -251,7 +251,7 @@ export const ProjectListNew = () => { | |||||||
|             <ConditionallyRender |             <ConditionallyRender | ||||||
|                 condition={useNewProjectForm} |                 condition={useNewProjectForm} | ||||||
|                 show={ |                 show={ | ||||||
|                     <CreateProjectDialogue |                     <CreateProjectDialog | ||||||
|                         open={openCreateDialog} |                         open={openCreateDialog} | ||||||
|                         onClose={() => setOpenCreateDialog(false)} |                         onClose={() => setOpenCreateDialog(false)} | ||||||
|                     /> |                     /> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user