-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ui of page show winnner #111
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ class ModalDeposit extends React.Component { | |
</ModalBody> | ||
</FormGroup> | ||
<ModalFooter> | ||
<Button color='primary' type='submit'> | ||
<Button color='primary' type='submit' onClick={this.toggle}> | ||
Send | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i18n |
||
</Button> | ||
<Button color='secondary' onClick={this.toggle}> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,13 @@ class PlayerLayout extends Component { | |
<Row className='set_height'> | ||
<Col className='box_color' xs='12' md='8'> | ||
<div className='margin_box '> | ||
<span> The winner is youuuuu</span> | ||
<br /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Viết style đi, tạo khoảng cách như này thô quá! Mai cần cách đoạn nữa lạ thêm |
||
<p className='congrat'>Congratulation! You are winner</p> | ||
<div> | ||
<strong>Game Balance:</strong> {this.props.aliasBalance} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ngộ nhỡ props bị null??? |
||
<img width='35' src='https://i.imgur.com/VZgib3M.png' alt='tomoCoin' /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. K được viết inline style như này, cho vào file style khi cần sửa trong file |
||
</div> | ||
|
||
<Button | ||
color='none' | ||
className='withdraw' | ||
|
@@ -96,9 +102,9 @@ class PlayerLayout extends Component { | |
<ToastContainer position='top-center' autoClose={2000} /> | ||
<img | ||
alt='' | ||
src='https://media.giphy.com/media/2A0JSxcE0eQfrQrjAZ/giphy.gif' | ||
className='gif-load' | ||
width='60%' | ||
src='https://media.giphy.com/media/fxsqOYnIMEefC/giphy.gif' | ||
className='gif-congrat mt-3' | ||
width='80%' | ||
/> | ||
</div> | ||
</Col> | ||
|
@@ -116,6 +122,22 @@ class PlayerLayout extends Component { | |
<Col className='box_color' xs='12' md='8'> | ||
<div className='margin_box '> | ||
<span> Waiting a new game...</span> | ||
<div> | ||
<strong>Game Balance:</strong> {this.props.aliasBalance} | ||
<img width='35' src='https://i.imgur.com/VZgib3M.png' alt='tomoCoin' /> | ||
</div> | ||
|
||
<Button | ||
color='none' | ||
className='withdraw' | ||
onClick={(e) => { | ||
this.getMoneyBack(); | ||
this.notifyInfo('Withdrawing...'); | ||
}} | ||
> | ||
Withdraw | ||
</Button> | ||
<ToastContainer position='top-center' autoClose={2000} /> | ||
<img | ||
alt='' | ||
src='https://media.giphy.com/media/2A0JSxcE0eQfrQrjAZ/giphy.gif' | ||
|
@@ -196,7 +218,8 @@ const mapStatetoProps = (state) => { | |
ranking: state.tomo.ranking, | ||
wincount: state.tomo.winCount, | ||
questionCount: state.tomo.questionCount, | ||
tomo: state.tomo | ||
tomo: state.tomo, | ||
aliasBalance: state.tomo.aliasBalance | ||
}; | ||
}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,13 @@ button.answer_box:focus { | |
padding-right: 4%; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.button-start, | ||
.button-withdraw { | ||
width: 14%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 700px) { | ||
.switchSmall { | ||
position: absolute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nên chuyển indent sang 4 spaces cho đỡ đau mắt |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dấu cách sau số 0 để làm gì vậy bạn?