Skip to content

Commit 9e73e6c

Browse files
committed
fix: styles and funding.yml file
1 parent f82844f commit 9e73e6c

File tree

11 files changed

+40
-62
lines changed

11 files changed

+40
-62
lines changed

.github/funding.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: Proskynete
2+
custom: https://donate.eduardoalvarez.dev

lib/cjs/components/content/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var Content = function (_a) {
3636
var handleSetShow = function () {
3737
setShow(!show);
3838
};
39-
return (react_1.default.createElement(main_1.ContentWrapper, null,
39+
return (react_1.default.createElement(react_1.default.Fragment, null,
4040
react_1.default.createElement(main_1.EventTitle, { collapse: isCollapsed, onClick: function () {
4141
if (isCollapsed)
4242
handleSetShow();

lib/cjs/styles/main.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ interface TitleProps {
1313
}
1414
export declare const Title: import("styled-components").StyledComponent<"h2", any, TitleProps, never>;
1515
export declare const BodyInner: import("styled-components").StyledComponent<"div", any, {}, never>;
16-
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1716
interface IconProps {
1817
readonly isShowing?: boolean;
1918
}

lib/cjs/styles/main.js

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/esm/components/content/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from 'react';
22
import { useConfig } from '../../hooks/useConfig';
3-
import { ContentWrapper, Description, DescriptionWrapper, EventTitle, Icon, } from '../../styles/main';
3+
import { Description, DescriptionWrapper, EventTitle, Icon } from '../../styles/main';
44
var Content = function (_a) {
55
var _b;
66
var title = _a.title, description = _a.description, collapse = _a.collapse;
@@ -10,7 +10,7 @@ var Content = function (_a) {
1010
var handleSetShow = function () {
1111
setShow(!show);
1212
};
13-
return (React.createElement(ContentWrapper, null,
13+
return (React.createElement(React.Fragment, null,
1414
React.createElement(EventTitle, { collapse: isCollapsed, onClick: function () {
1515
if (isCollapsed)
1616
handleSetShow();

lib/esm/styles/main.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ interface TitleProps {
1313
}
1414
export declare const Title: import("styled-components").StyledComponent<"h2", any, TitleProps, never>;
1515
export declare const BodyInner: import("styled-components").StyledComponent<"div", any, {}, never>;
16-
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
1716
interface IconProps {
1817
readonly isShowing?: boolean;
1918
}

lib/esm/styles/main.js

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vertical-timeline-component-react",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "A simple component for create a vertical timeline with React",
55
"main": "./lib/cjs/index.js",
66
"module": "./lib/esm/index.js",

src/components/content/index.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import React, { useState } from 'react';
22
import { useConfig } from '../../hooks/useConfig';
3-
import {
4-
ContentWrapper,
5-
Description,
6-
DescriptionWrapper,
7-
EventTitle,
8-
Icon,
9-
} from '../../styles/main';
3+
import { Description, DescriptionWrapper, EventTitle, Icon } from '../../styles/main';
104

115
interface ContentProps {
126
title: string;
@@ -24,7 +18,7 @@ const Content = ({ title, description, collapse }: ContentProps) => {
2418
};
2519

2620
return (
27-
<ContentWrapper>
21+
<>
2822
<EventTitle
2923
collapse={isCollapsed}
3024
onClick={() => {
@@ -45,7 +39,7 @@ const Content = ({ title, description, collapse }: ContentProps) => {
4539
))}
4640
</DescriptionWrapper>
4741
)}
48-
</ContentWrapper>
42+
</>
4943
);
5044
};
5145

src/styles/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ export const BodyInner = styled.div`
132132
}
133133
`;
134134

135-
export const ContentWrapper = styled.div`
136-
&:last-of-type {
137-
margin-top: 5px;
138-
}
139-
`;
140-
141135
interface IconProps {
142136
readonly isShowing?: boolean;
143137
}

0 commit comments

Comments
 (0)