Skip to content

Commit

Permalink
Add delegate card back (solana-labs#794)
Browse files Browse the repository at this point in the history
Co-authored-by: Noah Drabinsky <[email protected]>
  • Loading branch information
ndrabins and Noah Drabinsky authored Jun 27, 2022
1 parent ef24c6a commit ebaf09d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions VoteStakeRegistry/components/Account/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import PreviousRouteBtn from '@components/PreviousRouteBtn'
import { LinkIcon } from '@heroicons/react/outline'
import MyProposalsBtn from 'pages/dao/[symbol]/proposal/components/MyProposalsBtn'
import useWalletStore from 'stores/useWalletStore'
import DelegateCard from '@components/DelegateCard'

const AccountInner = ({ withHeader = true }: { withHeader?: boolean }) => {
const connected = useWalletStore((s) => s.connected)
Expand Down Expand Up @@ -37,12 +38,18 @@ const Account = ({ withHeader = true }: { withHeader?: boolean }) => {
return (
<div className="grid grid-cols-12 gap-4">
<AccountInner withHeader={withHeader} />
<div className="md:w-1/2 col-span-12">
<DelegateCard />
</div>
</div>
)
} else {
return (
<>
<AccountInner withHeader={withHeader} />
<div className="md:w-1/2 col-span-12">
<DelegateCard />
</div>
</>
)
}
Expand Down

0 comments on commit ebaf09d

Please sign in to comment.