-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(wallet): Wallet faq #486
Conversation
Branch preview✅ Deployed successfully in branch deployment: |
src/content/wallet.json
Outdated
"title": "FAQ", | ||
"items": [ | ||
{ | ||
"title": "What is a Safe smart account?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"title": "What is a Safe smart account?", | |
"title": "What is a Safe Smart Account?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied in the CMS entry. You can verify in the PR deployment.
src/content/wallet.json
Outdated
}, | ||
{ | ||
"title": "What networks are supported by Safe{Wallet}?", | ||
"text": "Safe{Wallet} supports a wide range of blockchain networks, allowing you to manage your crypto assets across multiple platforms. The supported networks include Ethereum, Gnosis Chain, Polygon, Polygon zkEVM, BNB Chain, Arbitrum, Optimism, Base, Linea, zkSync Era, Scroll, X Layer, Celo, Avalanche, and Aurora. You can easily select the appropriate network when setting up your Safe Smart Account or when managing your funds within the Safe{Wallet} platform." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about populating this list from the Config Service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather find a solution through the CMS. Let me iterate on it and will ping you again to review.
src/components/common/FAQ/index.tsx
Outdated
onClick={() => { | ||
!expanded | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onClick={() => { | |
!expanded | |
}} |
src/components/common/FAQ/index.tsx
Outdated
expanded={expanded} | ||
onChange={handleChange} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being controlled? The Accordion
doesn't need to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was the way I found to setOpenMap
and control which accordions are open by index.
What it solves
Implements the generic FAQ section with content imported from the JSON file. Similar to https://github.com/safe-global/safe-homepage/tree/main/src/components/commonCMS/Faq
Figma
https://www.figma.com/design/qtXXlwdslAze6yNbLLzIRa/Website-redesign-2.0?node-id=15367-15363&node-type=frame&t=qN9WsCrCOsfBan3X-0