Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 1bfc7c9

Browse files
authored
chore(svg-icons): to ts & fix warnings (#1059)
1 parent 35eb989 commit 1bfc7c9

32 files changed

+33
-32
lines changed

src/components/ArticleItemPrefixLabel/styles/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const ReadedLabel = styled.div<{ topOffset: string }>`
1717
font-size: 0.8rem;
1818
`};
1919
`
20-
export const PinIcon = styled(PinSVG)`
20+
export const PinIcon = styled(PinSVG)<{ top: string }>`
2121
fill: ${theme('thread.articleDigest')};
2222
position: absolute;
2323
${css.size(18)};

src/components/InlineTags/styles/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Title = styled.div`
2525
`};
2626
`
2727
export const MoreText = styled.div``
28-
export const HashSign = styled(HashTagSVG)`
28+
export const HashSign = styled(HashTagSVG)<{ color: string }>`
2929
fill: ${({ color }) => color};
3030
${css.size(12)};
3131
transform: rotate(18deg);

src/components/SvgIcons/HashTagSVG.js renamed to src/components/SvgIcons/HashTagSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
function SvgComponent(props) {
3+
const SvgComponent: React.FC = (props) => {
44
return (
55
<svg
66
className="prefix__icon"

src/components/SvgIcons/HeaderMailSVG.js renamed to src/components/SvgIcons/HeaderMailSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/HeaderSearchSVG.js renamed to src/components/SvgIcons/HeaderSearchSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/HeaderStatesSVG.js renamed to src/components/SvgIcons/HeaderStatesSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/PinSVG.js renamed to src/components/SvgIcons/PinSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/TabAISVG.js renamed to src/components/SvgIcons/TabAISVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/TabBackendSVG.js renamed to src/components/SvgIcons/TabBackendSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1024 1024"

src/components/SvgIcons/TabBillingSVG.js renamed to src/components/SvgIcons/TabBillingSVG.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
const SvgComponent = (props) => (
3+
const SvgComponent: React.FC = (props) => (
44
<svg
55
className="prefix__icon"
66
viewBox="0 0 1367 1024"

0 commit comments

Comments
 (0)