Skip to content

Commit

Permalink
docs(components): fix calendar showcases
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Oct 14, 2019
1 parent 9a5be22 commit 35c2f47
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { StyleType } from '@kitten/theme';
import { Text } from '@kitten/ui';

export const CalendarCustomItem = (date: Date, style: StyleType): React.ReactElement<ViewProps> => {
export const CalendarCustomItem = ({ date }, style: StyleType): React.ReactElement<ViewProps> => {

const value: number = 100 * date.getDate() + Math.pow(date.getDate(), 2);

Expand Down
1 change: 1 addition & 0 deletions src/playground/src/ui/screen/calendar/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const filterSection: ComponentShowcaseSection = {
export const calendarShowcase: ComponentShowcase = {
sections: [
defaultSection,
// customItemSection,
// momentSection,
// dateFnsSection,
// startViewSection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export class CalendarBoundingMonthShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export class CalendarCustomDayShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
dayContainer: {
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export class CalendarCustomLocaleShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export class CalendarFilterShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export class CalendarMomentShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export class CalendarSimpleUsageShowcase extends React.Component {

const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
padding: 16,
minHeight: 376,
},
});

0 comments on commit 35c2f47

Please sign in to comment.