Skip to content

Commit

Permalink
fix:isEditMode-타입값-추가
Browse files Browse the repository at this point in the history
  • Loading branch information
candosh committed Dec 18, 2023
1 parent 8096c82 commit 0bbe016
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 10 deletions.
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/AAR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingARR({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingARR({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/Continue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingContinue({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingContinue({ isEditMode: isEditModeTypeProps }) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/FiveF.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingFiveF({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingFiveF({ isEditMode: isEditModeTypeProps }) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/FourL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingFourL({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingFourL({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/KPT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingKPT({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingKPT({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/ORID.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingORID({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingORID({ isEditMode: isEditModeTypeProps }) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/Performance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingPerfomance({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingPerfomance({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/Personal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingPersonal({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingPersonal({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/TIL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingTIL({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingTIL({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down
6 changes: 5 additions & 1 deletion src/components/CompleteWriting/YWT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ type DataType = {
profileImageURL: string;
};

function CompleteWritingYWT({ isEditMode }) {
interface isEditModeTypeProps {
isEditMode: boolean;
}

function CompleteWritingYWT({ isEditMode }: isEditModeTypeProps) {
const { id } = useParams();
const [firstContent, setFirstContent] = useState("");
const [secondContent, setSecondContent] = useState("");
Expand Down

0 comments on commit 0bbe016

Please sign in to comment.