Skip to content

Commit

Permalink
style: 게스트에게 다른 워크스페이스 안내멘트 수정
Browse files Browse the repository at this point in the history
- 다른 워크스페이스 기능은 회원전용 입니다로 수정

#219
  • Loading branch information
hyonun321 committed Nov 29, 2024
1 parent eb26fba commit 949bfcc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ export const workspaceModalContainer = cx(
display: "flex",
}),
);

export const textBox = css({
padding: "lg",
color: "gray.500",
textAlign: "center",
fontSize: "md",
whiteSpace: "pre-line",
});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { useRef } from "react";
import { SIDE_BAR } from "@constants/size";
import { useSocketStore } from "@src/stores/useSocketStore";
import { css } from "@styled-system/css";
import { workspaceListContainer, workspaceModalContainer } from "./WorkspaceSelectModal.style";
import {
workspaceListContainer,
workspaceModalContainer,
textBox,
} from "./WorkspaceSelectModal.style";
import { WorkspaceSelectItem } from "./components/WorkspaceSelectItem";

interface WorkspaceSelectModalProps {
Expand All @@ -17,9 +21,9 @@ export const WorkspaceSelectModal = ({ isOpen, userName }: WorkspaceSelectModalP

const informText = userName
? availableWorkspaces.length > 0
? "" // 워크스페이스 목록이 표시될 것이므로 비워둠
? ""
: "접속할 수 있는 워크스페이스가 없습니다."
: "로그인 해주세요";
: `다른 워크스페이스 기능은\n 회원전용 입니다`;
return (
<motion.div
ref={modalRef}
Expand All @@ -46,16 +50,7 @@ export const WorkspaceSelectModal = ({ isOpen, userName }: WorkspaceSelectModalP
<WorkspaceSelectItem key={workspace.id} userName={userName} {...workspace} />
))
) : (
<p
className={css({
padding: "lg",
color: "gray.500",
textAlign: "center",
fontSize: "md",
})}
>
{informText}
</p>
<p className={textBox}>{informText}</p>
)}
</div>
</motion.div>
Expand Down

0 comments on commit 949bfcc

Please sign in to comment.