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

Add Navigation component in export list #594

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import PropTypes from 'prop-types';
import mergeClassNames from 'merge-class-names';

import Navigation from './Calendar/Navigation';
import Navigation from './Navigation';
import CenturyView from './CenturyView';
import DecadeView from './DecadeView';
import YearView from './YearView';
Expand Down
6 changes: 3 additions & 3 deletions src/Calendar/Navigation.jsx → src/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import {
getBeginPrevious2,
getEndPrevious,
getEndPrevious2,
} from '../shared/dates';
} from './shared/dates';
import {
formatMonthYear as defaultFormatMonthYear,
formatYear as defaultFormatYear,
} from '../shared/dateFormatter';
import { isView, isViews } from '../shared/propTypes';
} from './shared/dateFormatter';
import { isView, isViews } from './shared/propTypes';

const className = 'react-calendar__navigation';

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import CenturyView from './CenturyView';
import DecadeView from './DecadeView';
import YearView from './YearView';
import MonthView from './MonthView';
import Navigation from './Navigation';

export default Calendar;

export { Calendar, CenturyView, DecadeView, YearView, MonthView };
export { Calendar, CenturyView, DecadeView, YearView, MonthView, Navigation };
Loading