-
Notifications
You must be signed in to change notification settings - Fork 24
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
5441cb1
commit 01e5169
Showing
6 changed files
with
63 additions
and
204 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
70 changes: 0 additions & 70 deletions
70
daostar-website/src/components/ENSCard/AttestationCard.css
This file was deleted.
Oops, something went wrong.
124 changes: 0 additions & 124 deletions
124
daostar-website/src/components/ENSCard/AttestationCard.js
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
import React, { Fragment } from 'react'; | ||
import { Card, Divider } from '@blueprintjs/core'; | ||
import '../AttestationCard/AttestationCard.css'; | ||
|
||
const DisplayENSTextRecord = ({ | ||
id, | ||
key, | ||
value, | ||
resolver | ||
}) => { | ||
const daoName = resolver?.domain?.name ?? "Unknown DAO"; | ||
const daoAddress = resolver?.domain?.resolvedAddress?.id ?? "Unknown DAO"; | ||
const daoURI = value ? value : "https://daostar.org/registration"; | ||
|
||
return ( | ||
<Card className='wizard-card attestation-card'> | ||
<Fragment> | ||
<h3>{daoName}</h3> | ||
<Divider /> | ||
<div className="card-metadata"> | ||
<p className="bp4-text-small wizard-no-margin"> | ||
<span className="bp4-text-muted">ENS ID: </span> | ||
{id} | ||
</p> | ||
<p className="bp4-text-small wizard-no-margin"> | ||
<span className="bp4-text-muted">DAO Address: </span> | ||
{daoAddress} | ||
</p> | ||
<p className="bp4-text-small wizard-no-margin"> | ||
<span className="bp4-text-muted">DAO URI: </span> | ||
{daoURI} | ||
</p> | ||
</div> | ||
</Fragment> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default DisplayENSTextRecord; |
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