Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open

UI tweaks #72

wants to merge 5 commits into from

Conversation

alehuo
Copy link

@alehuo alehuo commented Nov 2, 2019

  • Use classnames library in complex class names
  • Refactor product browser to use CSS Grid
  • Improve UI scaling with different viewport sizes

@alehuo alehuo added the Ready for review The pull request is ready for review label Nov 2, 2019
@alehuo alehuo requested review from Tuupertunut and cxcorp November 2, 2019 08:16
@alehuo alehuo changed the title Fix/ui tweaks UI tweaks Nov 5, 2019
@@ -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}>

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')}

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 = () => {

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 />
) : (
<>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for review The pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants