-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix accessibility bugs. (#2159) * Fix accessibility bugs. * roll back package-lock.json. * Move text back to Components. * Fix typo. * feat(card): revise article feed card * feat(card): update following feed activity card * feat(card): update card description in following feed * fix(follow): add help dialog and component * fix(follow): update broadcast card in follow feed * fix(circle): adjust avatar size for following feed recommendation * fix(follow): revise recommend activitiy card * fix(follow): update following feed footer icon * fix(follow): revise style of following feed cards * fix(icon): fix paywall icon on article detail (#2172) * feat(follow): update following feed card * feat(follow): update following feed card * feat(follow): update recommendation description in following feed * chore(release): v3.28.0 (#2178) * fix(follow): fix slides * fix(follow): update following recommended cards scroll snap Co-authored-by: FledgeShiu <[email protected]> Co-authored-by: Zeck Li <[email protected]> Co-authored-by: Zeck Li <> Co-authored-by: devformatters <[email protected]>
- Loading branch information
1 parent
d3beb8a
commit 04d20e4
Showing
82 changed files
with
1,404 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "matters-web", | ||
"version": "3.27.0", | ||
"version": "3.28.0", | ||
"description": "codebase of Matters' website", | ||
"sideEffects": false, | ||
"author": "Matters <[email protected]>", | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/components/ArticleDigest/Feed/FooterActions/DonationCount/gql.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import gql from 'graphql-tag' | ||
|
||
export const fragments = { | ||
article: gql` | ||
fragment ActionsDonationCountArticle on Article { | ||
id | ||
transactionsReceivedBy(input: { first: 0, purpose: donation }) { | ||
totalCount | ||
} | ||
} | ||
`, | ||
} |
34 changes: 34 additions & 0 deletions
34
src/components/ArticleDigest/Feed/FooterActions/DonationCount/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { IconDonate24, IconDotDivider, TextIcon } from '~/components' | ||
|
||
import { numAbbr } from '~/common/utils' | ||
|
||
import { fragments } from './gql' | ||
|
||
import { ActionsDonationCountArticle } from './__generated__/ActionsDonationCountArticle' | ||
|
||
interface DonationCountProps { | ||
article: ActionsDonationCountArticle | ||
hasDivider: boolean | ||
} | ||
|
||
const DonationCount = ({ article, hasDivider }: DonationCountProps) => { | ||
if (!article.transactionsReceivedBy.totalCount) { | ||
return null | ||
} | ||
|
||
return ( | ||
<> | ||
<TextIcon icon={<IconDonate24 />} size="xs" color="grey-dark"> | ||
{article.transactionsReceivedBy.totalCount > 0 | ||
? numAbbr(article.transactionsReceivedBy.totalCount) | ||
: undefined} | ||
</TextIcon> | ||
|
||
{hasDivider && <IconDotDivider />} | ||
</> | ||
) | ||
} | ||
|
||
DonationCount.fragments = fragments | ||
|
||
export default DonationCount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.