-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from blockful-io/170-feat-create-new-subdomai…
…n-flow-db-resolver 170 feat create new subdomain flow db resolver
- Loading branch information
Showing
9 changed files
with
2,010 additions
and
110 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
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,52 @@ | ||
import { EthSVG } from "@ensdomains/thorin"; | ||
import Avatar from "boring-avatars"; | ||
|
||
interface NewSubdomainInfoProps { | ||
domain: string; | ||
website: string; | ||
description: string; | ||
ethAddress: string; | ||
} | ||
|
||
export const NewSubdomainInfo = ({ | ||
domain = "new domain", | ||
website, | ||
description, | ||
ethAddress, | ||
}: NewSubdomainInfoProps) => { | ||
return ( | ||
<> | ||
<p className="text-gray-400"> | ||
Check your information before confirming in your wallet | ||
</p> | ||
<div className="rounded-md flex flex-col border border-gray-200 overflow-hidden"> | ||
<div className="flex flex-col p-4 border-b border-gray-200 bg-gray-50 gap-4"> | ||
<div className="flex gap-4"> | ||
<Avatar | ||
size={40} | ||
square | ||
name="Margaret Bourke" | ||
variant="marble" | ||
colors={["#44BCF0", "#7298F8", "#A099FF", "#FFFFFF"]} | ||
/> | ||
<div className="flex flex-col"> | ||
<p className="font-bold">{domain}</p> | ||
<p className=" text-blue-500 text-sm">{website}</p> | ||
</div> | ||
</div> | ||
<p>{description}</p> | ||
</div> | ||
|
||
<div className="p-4 flex flex-col"> | ||
<div className="flex w-full justify-between"> | ||
<div className="flex items-center gap-2"> | ||
<EthSVG className="w-4 h-4 text-gray-400" /> | ||
<p className="text-gray-400">ETH Address</p> | ||
</div> | ||
<p className="max-w-32 truncate">{ethAddress}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.