Skip to content

Commit

Permalink
🐛 Fix optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Sep 10, 2020
1 parent 58c9b12 commit 83394e6
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
14 changes: 7 additions & 7 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import * as React from "react";
interface TimelineProps {
timelineBg: string;
timelineBg?: string;
}
interface TimelineItemProps {
title: string;
date: number;
body: string;
side: string;
bodyTextColor: string;
bgColor: string;
dateColor: string;
titleBg: string;
titleColor: string;
borderRadius: string;
bodyTextColor?: string;
bgColor?: string;
dateColor?: string;
titleBg?: string;
titleColor?: string;
borderRadius?: string;
}
export declare const Timeline: React.FC<TimelineProps>;
export declare const TimelineItem: React.FC<TimelineItemProps>;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions dist/styles.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
export declare const TimelineDiv: import("styled-components").StyledComponent<"div", any, {
timelineBg: string;
timelineBg?: string | undefined;
}, never>;
export declare const TimelineItemDiv: import("styled-components").StyledComponent<"div", any, {
bgColor: string;
bgColor?: string | undefined;
}, never>;
export declare const TimelineItemBodyDiv: import("styled-components").StyledComponent<"div", any, {
bgColor: string;
borderRadius: string;
bodyTextColor: string;
bgColor?: string | undefined;
borderRadius?: string | undefined;
bodyTextColor?: string | undefined;
}, never>;
export declare const TimelineItemHeaderDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
export declare const TimelineItemHeaderP: import("styled-components").StyledComponent<"p", any, {
dateColor: string;
dateColor?: string | undefined;
}, never>;
export declare const TimelineItemHeaderH4: import("styled-components").StyledComponent<"h4", any, {
titleColor: string;
titleBg: string;
titleColor?: string | undefined;
titleBg?: string | undefined;
}, never>;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-timelinev2",
"version": "1.0.0",
"version": "1.2.0",
"description": "Reusable react components to react a good looking and responsive timeline out the box!",
"main": "dist/index.js",
"files": [
Expand Down
14 changes: 7 additions & 7 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import {
} from "./styles";

interface TimelineProps {
timelineBg: string;
timelineBg?: string;
}

interface TimelineItemProps {
title: string;
date: number;
body: string;
side: string;
bodyTextColor: string;
bgColor: string;
dateColor: string;
titleBg: string;
titleColor: string;
borderRadius: string;
bodyTextColor?: string;
bgColor?: string;
dateColor?: string;
titleBg?: string;
titleColor?: string;
borderRadius?: string;
}

export const Timeline: React.FC<TimelineProps> = ({
Expand Down
Loading

0 comments on commit 83394e6

Please sign in to comment.