tweaks
This commit is contained in:
parent
c4a1bdd915
commit
03b68a0a13
|
|
@ -1,6 +1,6 @@
|
|||
import { useRouter } from "next/router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { getAccessToken, getEmbeddedConnectedWallet, usePrivy, useWallets } from "@privy-io/react-auth";
|
||||
import { getAccessToken, getEmbeddedConnectedWallet, usePrivy, useWallets, Google, Twitter, Discord } from "@privy-io/react-auth";
|
||||
import Head from "next/head";
|
||||
import { useBalance } from 'wagmi';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
|
|
@ -306,9 +306,13 @@ export default function DashboardPage() {
|
|||
<span className="font-medium">{social.name}</span>
|
||||
</div>
|
||||
<div className="flex items-center space-x-4">
|
||||
<span className={`px-3 py-1 rounded-full ${social.user ? 'bg-green-900 text-green-300' : 'bg-gray-700 text-gray-400'}`}>
|
||||
{social.user ? `@${social.user.username || social.user.email}` : 'Not linked'}
|
||||
</span>
|
||||
<span className={`px-3 py-1 rounded-full ${social.user ? 'bg-green-900 text-green-300' : 'bg-gray-700 text-gray-400'}`}>
|
||||
{social.user ? (
|
||||
social.name === 'Google'
|
||||
? `@${(social.user as Google).email}`
|
||||
: `@${(social.user as Twitter | Discord).username}`
|
||||
) : 'Not linked'}
|
||||
</span>
|
||||
<button
|
||||
onClick={social.toggle}
|
||||
className={`rounded-full px-4 py-2 font-semibold transition duration-300 ${
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user