Browse Source

Fixing some styling on the round timer

Kirk Trombley 5 năm trước cách đây
mục cha
commit
10e4ec03b4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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>
     );