1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +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:
Thomas Heartman 2024-05-28 08:30:11 +02:00 committed by GitHub
parent be0f073b89
commit 5f3eae7035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ import { useNavigate } from 'react-router-dom';
import { Button, Dialog, styled } from '@mui/material';
import { ReactComponent as ProjectIcon } from 'assets/icons/projectIconSmall.svg';
interface ICreateProjectDialogueProps {
interface ICreateProjectDialogProps {
open: boolean;
onClose: () => void;
}
@ -42,10 +42,10 @@ const StyledProjectIcon = styled(ProjectIcon)(({ theme }) => ({
stroke: theme.palette.common.white,
}));
export const CreateProjectDialogue = ({
export const CreateProjectDialog = ({
open,
onClose,
}: ICreateProjectDialogueProps) => {
}: ICreateProjectDialogProps) => {
const { createProject, loading } = useProjectApi();
const { refetchUser } = useAuthUser();
const { uiConfig } = useUiConfig();

View File

@ -24,7 +24,7 @@ import { useUiFlag } from 'hooks/useUiFlag';
import { useProfile } from 'hooks/api/getters/useProfile/useProfile';
import { groupProjects } from './group-projects';
import { ProjectGroup } from './ProjectGroup';
import { CreateProjectDialogue } from '../Project/CreateProject/CreateProjectDialog/CreateProjectDialog';
import { CreateProjectDialog } from '../Project/CreateProject/CreateProjectDialog/CreateProjectDialog';
const StyledApiError = styled(ApiError)(({ theme }) => ({
maxWidth: '500px',
@ -251,7 +251,7 @@ export const ProjectListNew = () => {
<ConditionallyRender
condition={useNewProjectForm}
show={
<CreateProjectDialogue
<CreateProjectDialog
open={openCreateDialog}
onClose={() => setOpenCreateDialog(false)}
/>