Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "4337" tag in resource hub; remove "Mass adoption"; sort tags #340

Merged
merged 1 commit into from
Feb 6, 2024
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
12 changes: 11 additions & 1 deletion components/ResourceHub/Resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,17 @@ export const Resources = (): ReactElement => {

<SidebarAccordion
title='Topics'
items={uniqueTags}
items={uniqueTags.sort((a, b) =>
a === '4337' && b === 'Introduction'
? -1
: a === 'Introduction' && b === '4337'
? 1
: a === 'Introduction'
? -1
: b === 'Introduction'
? 1
: a.localeCompare(b)
)}
selectedItems={selectedTags}
onChange={onSelectTag}
/>
Expand Down
3 changes: 2 additions & 1 deletion components/ResourceHub/community-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@
"abstract": "This guide will walk you through how to create and use a Safe account with permissionless.js.",
"tags": [
"Tutorial",
"Safe Smart Account"
"Safe Smart Account",
"4337"
]
},
{
Expand Down
6 changes: 2 additions & 4 deletions components/ResourceHub/company-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
"type": "Blog Post",
"abstract": "Today, the Safe{Core} Account Abstraction SDK added a shiny new tool to its toolbox.",
"tags": [
"Introduction",
"Mass Adoption"
"Introduction"
]
},
{
Expand Down Expand Up @@ -207,8 +206,7 @@
"abstract": "Safe is launching Safe{Core}, a modular AA stack with Stripe, Gelato, and Web3Auth as launch partners.",
"tags": [
"Introduction",
"Account Abstraction",
"Mass Adoption"
"Account Abstraction"
]
},
{
Expand Down
Loading