-
Notifications
You must be signed in to change notification settings - Fork 0
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
UI tweaks #72
base: develop
Are you sure you want to change the base?
UI tweaks #72
Conversation
@@ -48,10 +49,10 @@ export class Confirmation extends React.Component { | |||
<span className="confirm-title-text">Confirm <b>{moneyFormatter.centsToString(depositAmount)} €</b> deposit</span> | |||
<br /> | |||
<br /> | |||
<button className="btn number cancel cancelBtn confirmation-cancel-btn" onClick={this.handleCancel}> | |||
<button className={classNames('btn','number', 'cancel', 'cancelBtn', 'confirmation-cancel-btn')} onClick={this.handleCancel}> |
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.
Line too long, fix this.
import moneyFormatter from '../../services/moneyFormatter'; | ||
|
||
// TODO: Add own styles | ||
export const OkButton = ({ handleSubmit }) => ( | ||
<button className="btn number success depositOkButton" onClick={handleSubmit}> | ||
<button | ||
className={classNames('btn', 'number', 'success', 'depositOkButton')} |
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.
Is this really cleaner code than what was here before?
this.props.setFilter(''); | ||
this.props.setCategorySelected(-1); | ||
}; | ||
componentWillUnmount = () => { |
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.
Wrong indentation
{this.props.loading ? ( | ||
<Loader /> | ||
) : ( | ||
<> |
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.
But why?
classnames
library in complex class names