Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Css fix, pendingBounties, Account link #53

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Css fix, pendingBounties, Account link
  • Loading branch information
hostgsr authored Apr 24, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 2927cb822bc1c417d3615aeb00626a30593312ec
17 changes: 17 additions & 0 deletions src/app/account/[id]/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Metadata } from 'next';
import * as React from 'react';

import '@/styles/colors.css';

export const metadata: Metadata = {
title: 'Account',
description: 'Account details',
};

export default function AccountLayout({
children,
}: {
children: React.ReactNode;
}) {
return <>{children}</>;
}
37 changes: 37 additions & 0 deletions src/app/account/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
'use client'

import dynamic from 'next/dynamic';
import * as React from 'react';

import Header from '@/components/layout/Header';

import ContextProvider from '@/app/context/ContextProvider';
const AccountInfo = dynamic(() => import('@/components/account/AccountInfo'), { ssr: false });
import Footer from '@/components/layout/Footer';

Check warning on line 10 in src/app/account/[id]/page.tsx

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

Run autofix to sort these imports!

import WalletProvider from '@/app/context/WalletProvider';
import { usePathname } from 'next/navigation';



const Account = () => {

const pathname = usePathname();
const accountLink = pathname.split('/').pop() || '';

console.log(accountLink)

Check warning on line 22 in src/app/account/[id]/page.tsx

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

Unexpected console statement

return (
<ContextProvider>
<WalletProvider>
<Header />
<div className='container mx-auto px-5 lg:px-0 pt-16'>
<AccountInfo />
</div>
<Footer />
</WalletProvider>
</ContextProvider>
);
};

export default Account;
3 changes: 3 additions & 0 deletions src/app/account/page.tsx
Original file line number Diff line number Diff line change
@@ -7,13 +7,16 @@

import ContextProvider from '@/app/context/ContextProvider';
const AccountInfo = dynamic(() => import('@/components/account/AccountInfo'), { ssr: false });
import Footer from '@/components/layout/Footer';

Check warning on line 10 in src/app/account/page.tsx

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

Run autofix to sort these imports!

import WalletProvider from '@/app/context/WalletProvider';
import { usePathname } from 'next/navigation';

Check warning on line 13 in src/app/account/page.tsx

GitHub Actions / ⬣ ESLint, ʦ TypeScript, 💅 Prettier, and 🃏 Test

'usePathname' is defined but never used



const Account = () => {


return (
<ContextProvider>
<WalletProvider>
12 changes: 12 additions & 0 deletions src/app/context/ContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -111,6 +111,18 @@ const ContextProvider: React.FC<ContextProviderProps> = ({ children }) => {
backdrop-filter: blur(4px);
}

.transaction-status-layout__content{
background-color: rgba(209, 236, 255, 0.2);
border:1px solid white;
color:white;
backdrop-filter: blur(4px);
}

input:-webkit-autofill, input:-webkit-autofill:active, input:-webkit-autofill:focus, input:-webkit-autofill:hover, select:-webkit-autofill, select:-webkit-autofill:focus, select:-webkit-autofill:hover, textarea:-webkit-autofill, textarea:-webkit-autofill:focus, textarea:-webkit-autofill:hover{
-webkit-text-fill-color:white!important;
color:white!important;
}

.user-profile__fields{
background-color: rgba(209, 236, 255, 0.2);
border:1px solid white;
Loading
Loading