Skip to content

Commit

Permalink
HOTFIX: 탈퇴 멤버 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperRyou committed Jul 16, 2024
1 parent 7f86f12 commit f4b141f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules
8 changes: 6 additions & 2 deletions src/assist/ProfileDiscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Profile from "@modules/components/profile/Profile";
import FlexBox from "@modules/layout/FlexBox";

interface ApprovalProfileProps {
name: string;
name: string | null;
position: string;
phone: string;
}
Expand All @@ -16,7 +16,11 @@ export default function ApprovalProfile({
<FlexBox direction="row" className="w-full items-start gap-2">
<Profile name={name} size="S" />
<FlexBox direction="col" className="gap-1 items-start py-1">
<div className="B3-medium">{name}</div>
{name === null ? (
<div className="B3-medium text-zinc-400">탈퇴한 유저입니다</div>
) : (
<div className="B3-medium">{name}</div>
)}
<div className="B5-medium text-zinc-400">
{position}
{` `}
Expand Down
8 changes: 6 additions & 2 deletions src/screen/main/WorkInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RoleType } from "@/apis/_type";
import FlexBox from "@modules/layout/FlexBox";

interface WorkInfoProps {
name: string;
name: string | null;
position: string;
time: string;
role: RoleType;
Expand All @@ -24,7 +24,11 @@ export default function WorkInfo({
<FlexBox className="w-full gap-2 justify-start">
<div className={`w-1 shrink-0 h-full ${style[role]} rounded-full`} />
<FlexBox direction="col" className="w-full gap-2.5 items-start">
<div className="B1-medium">{name}</div>
{name === null ? (
<div className="B2-regular text-Gray4">탈퇴한 유저입니다</div>
) : (
<div className="B1-medium">{name}</div>
)}
<FlexBox className="gap-2">
<div className="text-Gray4 B4-regular">{position}</div>
<div className="text-Gray4 B4-regular">{time}</div>
Expand Down

0 comments on commit f4b141f

Please sign in to comment.