Skip to content

Commit

Permalink
new comp name: EditorUpsertModal
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Sep 16, 2024
1 parent 7d449a2 commit 3e7022f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
optimisticallyUpdateExistingMember,
} from "./lib/optimisticallyUpdateMembersTable";

export const AddNewEditorModal = ({
export const EditorUpsertModal = ({
showModal,
setShowModal,
initialValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Permission from "ui/editor/Permission";

import { StyledAvatar, StyledTableRow } from "./../styles";
import { MembersTableProps, TeamMember } from "./../types";
import { AddNewEditorModal } from "./AddNewEditorModal";
import { EditorUpsertModal } from "./AddNewEditorModal";

const TableButton = styled(Button)(({ theme }) => ({
color: theme.palette.primary.main,
Expand Down Expand Up @@ -71,7 +71,7 @@ export const MembersTable = ({
)}
</Table>
{showAddModal && (
<AddNewEditorModal
<EditorUpsertModal
showModal={showAddModal}
setShowModal={setShowAddModal}
initialValues={initialValues}
Expand Down Expand Up @@ -159,15 +159,15 @@ export const MembersTable = ({
</Table>
</TableContainer>
{showAddModal && (
<AddNewEditorModal
<EditorUpsertModal
showModal={showAddModal}
setShowModal={setShowAddModal}
initialValues={initialValues}
actionType={"add"}
/>
)}
{showUpdateModal && (
<AddNewEditorModal
<EditorUpsertModal
showModal={showUpdateModal}
setShowModal={setShowUpdateModal}
initialValues={initialValues}
Expand Down

0 comments on commit 3e7022f

Please sign in to comment.