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

Commit cebbb7f

Browse files
authored
refactor(share): integrate menu & panel & re-org codebase (#1314)
* refactor(share): move shareBtn into container * refactor(IconButton): use TSpace for margin * refactor(TagsList): use TSpace for margin * chore: clean up * chore: add .d for types file * refactor(icon): use local svg icon in menu * refactor(icon-button): use common get local svg * refactor(toast): options & theme adjust * refactor(share): copy to in logic * refactor(share): add to post page & adjust style * refactor(share): add condition load for panel
1 parent a0e50a1 commit cebbb7f

File tree

131 files changed

+713
-414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+713
-414
lines changed

public/bg/CircleSapres.jpeg

-106 KB
Binary file not shown.

public/bg/Squares.png

35.7 KB
Loading

public/bg/waves.png

15.2 KB
Loading

src/containers/content/HaveADrinkContent/styles/body/catalog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components'
33
import type { TActive } from '@/spec'
44
import Img from '@/Img'
55
import css, { theme } from '@/utils/css'
6-
import MoreSVG from '@/icons/More'
6+
import MoreSVG from '@/icons/menu/More'
77

88
import { Divider } from '@/widgets/Common'
99

src/containers/digest/ArticleDigest/DesktopView/WorksLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
WORKS_TAB,
1414
SVG,
1515
} from '@/constant'
16-
import { shareTo, addCollection } from '@/utils/helper'
16+
import { addCollection } from '@/utils/helper'
1717
import { buildLog } from '@/utils/logger'
1818

1919
import ArticleBaseStats from '@/widgets/ArticleBaseStats'
@@ -75,7 +75,7 @@ const WorksLayout: FC<TProps> = ({ metric = METRIC.ARTICLE, article, tab }) => {
7575
size={18}
7676
onClick={() => addCollection()}
7777
/>
78-
<IconButton icon={SVG.SHARE} size={18} onClick={shareTo} />
78+
<IconButton icon={SVG.SHARE} size={18} />
7979
</Actions>
8080
</Other>
8181
</Intro>

0 commit comments

Comments
 (0)