Skip to content

Commit b2cd88b

Browse files
JosanghyeonJosanghyeon
authored andcommitted
fix: studyRoom 색 수정
1 parent 341d5f0 commit b2cd88b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/studyRoom/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ export const StudyRoom = ({
8080
seat.number ? (
8181
<_Seat
8282
display="inline-block"
83-
background="primaryLighten1"
83+
background={seat.type.color || '#b1d0ff'}
8484
color="gray1"
8585
size="bodyS"
8686
>
87-
{seat.number}
87+
{seat.type ? seat.type.name : seat.number}
8888
</_Seat>
8989
) : (
9090
<_Seat
@@ -112,15 +112,15 @@ const _Seats = styled.div`
112112
display: flex;
113113
`;
114114

115-
const _Seat = styled(Text)<{ background: colorKeyOfType }>`
115+
const _Seat = styled(Text)<{ background: string }>`
116116
min-width: 80px;
117117
min-height: 80px;
118118
display: flex;
119119
justify-content: center;
120120
align-items: center;
121-
margin: 20px;
121+
margin: 10px;
122122
border-radius: 70%;
123-
background-color: ${({ theme, background }) => theme.color[background]};
123+
background-color: ${({ background }) => background};
124124
`;
125125

126126
const _EastDirection = styled(Text)`
@@ -140,7 +140,7 @@ const _NorthDirection = styled(Text)`
140140
`;
141141
const _WestDirection = styled(Text)`
142142
position: absolute;
143-
transform: rotate(90deg) translateX(-50%);
143+
transform: rotate(-90deg) translateX(50%);
144144
left: 0;
145145
`;
146146

0 commit comments

Comments
 (0)