Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ArticleItemPrefixLabel/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ReadedLabel = styled.div<{ topOffset: string }>`
font-size: 0.8rem;
`};
`
export const PinIcon = styled(PinSVG)`
export const PinIcon = styled(PinSVG)<{ top: string }>`
fill: ${theme('thread.articleDigest')};
position: absolute;
${css.size(18)};
Expand Down
2 changes: 1 addition & 1 deletion src/components/InlineTags/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Title = styled.div`
`};
`
export const MoreText = styled.div``
export const HashSign = styled(HashTagSVG)`
export const HashSign = styled(HashTagSVG)<{ color: string }>`
fill: ${({ color }) => color};
${css.size(12)};
transform: rotate(18deg);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

function SvgComponent(props) {
const SvgComponent: React.FC = (props) => {
return (
<svg
className="prefix__icon"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1367 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1113 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1068 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1152 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1152 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1219 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1024 1024"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'

const SvgComponent = (props) => (
const SvgComponent: React.FC = (props) => (
<svg
className="prefix__icon"
viewBox="0 0 1427 1024"
Expand Down
3 changes: 2 additions & 1 deletion src/containers/unit/TagsBar/styles/desktop_view/tag_item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const getActiveColor = (active, color, activeid) => {
return !active ? color : '#497684'
}

export const HashSign = styled(HashTagSVG)`
type THashSign = TActive & { color: string; activeid: string; inline: boolean }
export const HashSign = styled(HashTagSVG)<THashSign>`
fill: ${({ active, color, activeid }) =>
getActiveColor(active, color, activeid)};
${css.size(14)};
Expand Down