-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a017bd
commit 3e83595
Showing
6 changed files
with
105 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Accordion } from "@massalabs/react-ui-kit"; | ||
|
||
export interface FAQData { | ||
question: string; | ||
answer: string; | ||
} | ||
|
||
export function FAQ({ data }: { data: FAQData[] }) { | ||
if (!data) return null | ||
return ( | ||
<> | ||
<section className="mb-8"> | ||
<p className="mas-title mb-2">FAQ</p> | ||
</section> | ||
{data.map((item) => ( | ||
<Accordion customClass="bg-primary border-none rounded-xl p-1 mb-10" title={item.question}> | ||
<div className="p-5"> | ||
<p className="mas-body"> | ||
{item.answer} | ||
</p> | ||
</div> | ||
</Accordion> | ||
))} | ||
</> | ||
) | ||
} |
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,7 @@ | ||
export function MNSClaim() { | ||
return ( | ||
<div> | ||
test | ||
</div> | ||
) | ||
} |
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,7 @@ | ||
export function MNSList() { | ||
return ( | ||
<div> | ||
test | ||
</div> | ||
) | ||
} |
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,26 @@ | ||
import { useAccountStore } from "../lib/connectMassaWallets/store"; | ||
import { MNSClaim } from "./MNSClaim"; | ||
import { MNSList } from "./MNSList"; | ||
|
||
export function MNSManagement() { | ||
const { | ||
connectedAccount, | ||
currentProvider, | ||
} = useAccountStore(); | ||
|
||
const connected = !!connectedAccount && !!currentProvider; | ||
return ( | ||
<> | ||
{!connected ? ( | ||
<h2 className="mas-h2 text-center"> | ||
Please connect your wallet above | ||
</h2> | ||
) : ( | ||
<div className="grid grid-cols-1 divide-y"> | ||
<MNSClaim /> | ||
<MNSList /> | ||
</div> | ||
)} | ||
</> | ||
) | ||
} |