Skip to content

Commit

Permalink
Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrugu committed Jul 9, 2024
1 parent 166073b commit 4836b19
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
11 changes: 6 additions & 5 deletions src/components/GovnftNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ export default function GovnftNavbar({
return (
<>
{Object.entries(navs).map(([nav, title]) => (
<NavLink
href={`/nft/${nft.id}/${nav}`} key={String(nav)}
<NavLink
href={`/nft/${nft.id}/${nav}`}
key={String(nav)}
className={`${
active === nav ? classActive : "border-t border-transparent"
} hover:bg-gray-50 hover:dark:bg-gray-700/20 first:rounded-bl-lg`}
active === nav ? classActive : "border-t border-transparent"
} hover:bg-gray-50 hover:dark:bg-gray-700/20 first:rounded-bl-lg`}
>
<div className="px-5 sm:px-8 py-4 uppercase tracking-widest">{title}</div>
<div className="px-5 sm:px-8 py-4 uppercase tracking-widest">{title}</div>
</NavLink>
))}
</>
Expand Down
46 changes: 24 additions & 22 deletions src/components/Profile/CustomRpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,30 @@ export default function CustomRpc() {
return (
<div className="bg-gray-50 dark:bg-gray-900 dark:bg-opacity-20 p-6 rounded-lg">
<div className="text-gray-600 dark:text-gray-400 w-full">
<div className="pr-16">To communicate with the network with your personal RPC, add it here and reload the page. This is saved only
in your browser, locally.</div>
<div className="flex gap-4 ites-center justify-between pt-8">
<TextInput
rightIcon={PlugZapIcon}
value={rpc}
// @ts-ignore
onClick={(e) => e.target.select()}
onChange={(e) => setRpc(e.target.value)}
placeholder="RPC URL ..."
className="grow"
/>
<Button
onClick={() => {
setCustomRpc(rpc);
window.location.reload();
}}
>
Save
</Button>
</div>
<div className="pt-4 text-xs text-gray-500">Leave blank if you want to use the RPC provided by us.</div>
<div className="pr-16">
To communicate with the network with your personal RPC, add it here and reload the page. This is saved only in
your browser, locally.
</div>
<div className="flex gap-4 ites-center justify-between pt-8">
<TextInput
rightIcon={PlugZapIcon}
value={rpc}
// @ts-ignore
onClick={(e) => e.target.select()}
onChange={(e) => setRpc(e.target.value)}
placeholder="RPC URL ..."
className="grow"
/>
<Button
onClick={() => {
setCustomRpc(rpc);
window.location.reload();
}}
>
Save
</Button>
</div>
<div className="pt-4 text-xs text-gray-500">Leave blank if you want to use the RPC provided by us.</div>
</div>
</div>
);
Expand Down
5 changes: 1 addition & 4 deletions src/pages/Dashboard/components/Govnft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ export default function Govnft({
<div className="text-xs">
<ClaimButton nft={nft} />
{nft.claimable === 0n && (
<NavLink
href={`/nft/${nft.id}`}
className="text-gray-500 underline hover:no-underline"
>
<NavLink href={`/nft/${nft.id}`} className="text-gray-500 underline hover:no-underline">
Review
</NavLink>
)}
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Dashboard/components/Govnfts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export default function Govnfts({
<div className="mx-auto w-16 h-16 flex justify-center items-center bg-gray-200 dark:bg-white text-gray-900 rounded-3xl">
<ShapesIcon />
</div>
<div className="md:w-96 mx-auto px-2">The dashboard currently shows no NFTs minted. You can create your first NFT to get started. Once minted, you can find all your NFTs under settings.</div>
<div className="md:w-96 mx-auto px-2">
The dashboard currently shows no NFTs minted. You can create your first NFT to get started. Once minted, you
can find all your NFTs under settings.
</div>
<div className="w-80 mx-auto flex gap-3 justify-center">
<NavLink href="/create" size="sm" className="w-32" useButton={true}>
Create
Expand Down

0 comments on commit 4836b19

Please sign in to comment.