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

Calendar "current" is broken #5

Open
freiksenet opened this issue Nov 28, 2014 · 1 comment
Open

Calendar "current" is broken #5

freiksenet opened this issue Nov 28, 2014 · 1 comment
Assignees
Labels

Comments

@freiksenet
Copy link
Owner

freiksenet commented Nov 28, 2014

This is referring to the calendar highlighting the current month.

@lolJS lolJS added the bug label Mar 4, 2016
@lolJS lolJS self-assigned this Mar 7, 2016
@Codii
Copy link

Codii commented Oct 17, 2016

Here is what man can see in ./src/Month.js

const renderWeekHeader = (props) => {
  return (
    if (!props.weekdayNames) {
      return null;
    }

    <div className={`${clsPrefix}-weekdays`}>
      {
        daysOfWeek(props.date).map((weekday, i) =>
          <div key={ `weekday-header-${i}` } className={ classnames(`${clsPrefix}-weekdays-weekday`) }>
            { weekday.format(props.weekdayFormat) }
          </div>
        )
      }
    </div>
  );
};

With zoom

const renderWeekHeader = (props) => {
  return (
    if (!props.weekdayNames) {   /// !!!
      return null;               /// !!!
    }                            /// !!!

    <div className={`${clsPrefix}-weekdays`}>
      {
        daysOfWeek(props.date).map((weekday, i) =>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants