File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
126126const _EastDirection = styled ( Text ) `
@@ -140,7 +140,7 @@ const _NorthDirection = styled(Text)`
140140` ;
141141const _WestDirection = styled ( Text ) `
142142 position: absolute;
143- transform: rotate(90deg) translateX(- 50%);
143+ transform: rotate(- 90deg) translateX(50%);
144144 left: 0;
145145` ;
146146
You can’t perform that action at this time.
0 commit comments