소스 검색

Fixing some styling on the round timer

Kirk Trombley 5 년 전
부모
커밋
10e4ec03b4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      ui/src/components/round-timer.component.jsx

+ 2 - 1
ui/src/components/round-timer.component.jsx

@@ -33,8 +33,9 @@ class RoundTimer extends React.Component {
   
   render() {
     const { remaining } = this.state;
+    const { style } = this.props;
     return (
-      <div>
+      <div style={{ display: "flex", justifyContent: "center", ...style }}>
         {remaining > 0 ? <p>Time: {ms(remaining * 1000)}</p> : <p>Time's up!</p>}
       </div>
     );