Skip to content

Commit

Permalink
fix: delete Primitive type
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbeann committed Aug 27, 2024
1 parent 86fb9be commit 5ff8afc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useState } from 'react';
import { usePatchStatus } from '../api/usePatchStatus';

export function ApplicationStatus({ recruitId, status }: { recruitId: string; status: string }) {
const [clickStatus, setClickStatus] = useState<string>(status);
const [clickStatus, setClickStatus] = useState(status);

const { mutate: patchStatus } = usePatchStatus();

Expand Down
8 changes: 4 additions & 4 deletions src/app/(sidebar)/my-recruit/[id]/components/DetailHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export default function DetailHeader({ recruitId }: { recruitId: string }) {
const { data: recruitInfoById } = useGetRecruitById(recruitId);

const tooltipRef = useRef<HTMLDivElement>(null);
const [title, setTitle] = useState<string>(recruitInfoById?.title || '');
const [isFocused, setIsFocused] = useState<boolean>(false);
const [isHovered, setIsHovered] = useState<boolean>(false);
const [isLinked, setIsLinked] = useState<boolean>(false);
const [title, setTitle] = useState(recruitInfoById?.title || '');
const [isFocused, setIsFocused] = useState(false);
const [isHovered, setIsHovered] = useState(false);
const [isLinked, setIsLinked] = useState(false);

useOutsideClick(tooltipRef, () => setIsLinked(false));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function SemesterSelector({ recruitId, season }: { recruitId: str
const { data: seasons } = useGetSeasons();
const { mutate: patchSeason } = usePatchSeason();

const [clickSemester, setClickSemester] = useState<string>(season);
const [clickSemester, setClickSemester] = useState(season);

const handlePatchStatus = (status: string) => {
setClickSemester(status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function TextBubble({
recruitId: string;
isHovered: boolean;
}) {
const [link, setLink] = useState<string>('');
const [link, setLink] = useState('');

const { mutate: newLink } = usePatchSiteUrl();

Expand Down

0 comments on commit 5ff8afc

Please sign in to comment.