Skip to content

Commit fac2b8d

Browse files
committed
updates
1 parent 39ffe32 commit fac2b8d

17 files changed

Lines changed: 18664 additions & 18656 deletions

File tree

components/Typography/package-lock.json

Lines changed: 15247 additions & 15247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// const blockquote = '<Blockquote>{content}</Blockquote>';
2-
3-
4-
const blockquoteComponent = (content) => {
5-
return '<Blockquote>${content}</Blockquote>';
1+
const blockquoteComponent = (params) => {
2+
const { content } = params;
3+
return `<Blockquote>${content}</Blockquote>`;
64
}
75

8-
export { blockquoteComponent };
6+
export { blockquoteComponent };
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// const code = '<Code>{content}</Code>';
2-
3-
4-
const codeComponent = (content) => {
5-
return '<Code>${content}</Code>'
1+
const codeComponent = (params) => {
2+
const {content} = params;
3+
return `<Code>${content}</Code>`
64
}
75

86

9-
export { codeComponent };
7+
export { codeComponent };
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// const del = '<Del>{content}</Del>';
2-
3-
const delComponent = (content) => {
4-
return '<Del>${content}</Del>';
1+
const delComponent = (params) => {
2+
const {content} = params;
3+
return `<Del>${content}</Del>`;
54
}
65

7-
export { delComponent };
6+
export { delComponent };
87

components/Typography/src/components/heading.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// const heading = `<Heading>{content}</Heading>`;
2-
3-
4-
const headingComponent = (content) => {
1+
const headingComponent = (params) => {
2+
const {content} = params;
53
return `<Heading>${content}</Heading>`;
64
}
75

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
// const image = `<Image href="{href}" src="{src}" alt="{altText}" />`;
2-
3-
4-
const imageComponent = (href, src, altText) => {
1+
const imageComponent = (params) => {
2+
const {href, src, altText} = params;
53
return `<Image href="${href}" src="${src}" alt="${altText}" />`;
64
}
75

86

9-
export { imageComponent };
10-
7+
export { imageComponent };
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// const italic = `<Italic>{content}</Italic>`;
2-
3-
const italicComponent = (content) => {
1+
const italicComponent = (params) => {
2+
const {content} = params;
43
return `<Italic>${content}</Italic>`;
54
}
65

7-
export { italicComponent };
8-
6+
export { italicComponent };

components/Typography/src/components/link.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// const link = `<Link href="{href}">{content}</Link>`;
2-
3-
4-
const linkComponent = (href, content) => {
1+
const linkComponent = (params) => {
2+
const {href, content} = params;
53
return `<Link href="${href}">${content}</Link>`;
64
}
75

components/Typography/src/components/list.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/* values of type UL, OL */
2-
// const list = `<List type="{type}">{content}</List>`;
3-
4-
const listComponent = (type, content) => {
1+
const listComponent = (params) => {
2+
const {type, content} = params;
53
return `<List type="${type}">${content}</List>`;
64
}
75

components/Typography/src/components/listItem.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// const listItem = `<ListItem>{content}</ListItem>`;
2-
3-
4-
const listItemComponent = (content) => {
1+
const listItemComponent = (params) => {
2+
const {content} = params;
53
return `<ListItem>${content}</ListItem>`;
64
}
75

0 commit comments

Comments
 (0)