Skip to content

Commit

Permalink
fix: login changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SakshiShah29 committed Nov 17, 2024
1 parent 53248a2 commit d31b536
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/nextjs/app/marketplace/components/ChainSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const ChainSelector = ({ options, onSelect, currentChainId }: DropdownSelectorPr
};

return (
<div className="relative inline-block text-left">
<button onClick={toggleMenu} className="text-wheat py-2 rounded-md text-xs font-medium">
<div className="relative inline-block text-left -ml-2">
<button onClick={toggleMenu} className="text-wheat py-2 rounded-md text-[11px] font-medium">
{chainMappingId[currentChainId]}
<span className="ml-2"></span>
<span className=""></span>
</button>

{isOpen && (
Expand Down
10 changes: 5 additions & 5 deletions packages/nextjs/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ export const Login = () => {
<Image src={Logo} width={250} height={250} alt="Logo" className="mx-auto" />

<div className="flex flex-col justify-center h-full -mt-10">
<div className="flex flex-col">
<p className="text-3xl mx-auto">Login in to your account</p>
</div>

<div className="flex flex-col gap-4 mt-2 w-1/2 mx-auto">
<p className=" text-xl md:text-3xl md:mx-auto text-nowrap text-start -ml-20">Login in to your account</p>


<div className="flex flex-col gap-4 mt-2 w-[250px] md:w-1/2 md:mx-auto -ml-24">
<SocialButton provider={Web3AuthProvider.GOOGLE} />
<SocialButton provider={Web3AuthProvider.APPLE} />
<MetamaskConnectButton />
<DotPattern
className={cn(" [mask-image:radial-gradient(500px_circle_at_center,white,transparent)]")}
className={cn(" [mask-image:radial-gradient(200px_circle_at_center,white,transparent)] lg:[mask-image:radial-gradient(500px_circle_at_center,white,transparent)]")}
/>
{/* <button onClick={() => disconnect()}>Disconnect</button> */}
</div>
Expand Down
3 changes: 1 addition & 2 deletions packages/nextjs/components/SidebarComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Sidebar, SidebarBody, SidebarLink } from "@/components/ui/sidebar";
import { useWeb3AuthConnectorInstance } from "@/hooks/useWeb3AuthConnectorInstance";
import { IconArrowLeft, IconBrandTabler, IconSettings, IconUserBolt } from "@tabler/icons-react";
import { switchChain } from "@wagmi/core";
import { motion } from "framer-motion";
import { polygonAmoy } from "viem/chains";
import { useConfig, useDisconnect } from "wagmi";
import { useAccount } from "wagmi";
Expand Down Expand Up @@ -62,7 +61,7 @@ export function SidebarComponent() {
return (
<Sidebar open={sidebarOpen} setOpen={setSidebarOpen} animate>
<SidebarBody className="bg-gray-900 h-screen border-r border-gray-800 flex flex-col gap-6 py-6">
{/* <ChainSelector options={allChains} onSelect={switchToAnotherChain} currentChainId={config.state.chainId} /> */}
<ChainSelector options={allChains} onSelect={switchToAnotherChain} currentChainId={config.state.chainId} />
<div className="flex flex-col gap-2">
{links.map((link, index) => (
<SidebarLink
Expand Down

0 comments on commit d31b536

Please sign in to comment.