Skip to content

Commit

Permalink
fixed drawer navbar layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 16, 2024
1 parent d92ad58 commit fde7a0e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
48 changes: 24 additions & 24 deletions src/app/@auth/(.)payee/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ export default function Page() {
<>
<AnimatePresence>
<DrawerHeader>
<DrawerTitle className='grid grid-cols-3 items-center'>
<DrawerTitle className='grid grid-cols-3 items-center pt-2'>
<motion.div
className='w-auto'
key={'back'}
layoutId='back'
onClick={() => {
Expand All @@ -157,7 +158,7 @@ export default function Page() {
<motion.p
key={'payee-name'}
layoutId='payee-name'
className='font-inherit text-center leading-snug tracking-wide text-inherit mix-blend-exclusion'
className='text-center '
>
{payeeAddress && useFindPayeeName(payeeAddress, contactsState)}
</motion.p>
Expand All @@ -171,13 +172,14 @@ export default function Page() {
>
<div
onClick={handleAddUser}
className='text-muted-foreground flex space-x-2 text-base font-light'
className='text-muted-foreground flex content-center items text-base font-light'
>
<UserPlus
strokeWidth={2}
className='fill-muted-foreground stroke-muted-foreground'
/>
<p>Save</p>
<span>
<UserPlus
strokeWidth={2}
className='fill-muted-foreground stroke-muted-foreground h-auto '
/>
</span>
</div>{' '}
</motion.div>
)}
Expand Down Expand Up @@ -232,20 +234,19 @@ export default function Page() {
key={j}
>
{transaction.from == payeeAddress ? (

<div
style={{ marginBottom: '32px' }}
className='bg-muted mr-auto grid w-fit justify-self-start rounded-2xl rounded-bl-none p-4'
>
<Link
href={{
pathname: '/transaction',
query: {
transaction: transaction.blockHash,
closeSheet: false,
},
}}
<div
style={{ marginBottom: '32px' }}
className='bg-muted mr-auto grid w-fit justify-self-start rounded-2xl rounded-bl-none p-4'
>
<Link
href={{
pathname: '/transaction',
query: {
transaction: transaction.blockHash,
closeSheet: false,
},
}}
>
<div className='pb-4'>
${formatUnits(transaction.value, 6)}
</div>
Expand All @@ -258,9 +259,8 @@ export default function Page() {
date={fromUnixTime(transaction.timeStamp)}
/>
</p>
</Link>

</div>
</Link>
</div>
) : (
<div
style={{ marginBottom: '32px' }}
Expand Down
2 changes: 1 addition & 1 deletion src/app/@auth/(.)search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function Page() {
/>
</motion.div>
<p className='text-center font-normal'>
<TextGenerateEffect words='Search'></TextGenerateEffect>
Search
</p>
<div className='ml-auto'></div>
</DrawerTitle>
Expand Down
3 changes: 2 additions & 1 deletion src/app/@auth/(.)send/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { RootState } from '@/GlobalRedux/store';

// motion
import { motion } from 'framer-motion';
import { Circle } from 'lucide-react';


export default function Page() {
Expand Down Expand Up @@ -60,7 +61,7 @@ export default function Page() {
className='h-auto w-auto'
href={{ pathname: `/payee`, query: { payeeAddress: payee } }}
>
<Avatar className='h-9 w-9 bg-white'></Avatar>
<Circle className='fill-muted-foreground stroke-muted-foreground h-auto w-auto rounded-full stroke-1' />
</Link>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Navigation/BackButton/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface BackButtonProps {
export default function BackButton({ routehome, onClick }: BackButtonProps) {
return (
<div onClick={onClick} className='w-fit rounded-full'>
<Undo2 size={20} color='#cbd5e1' />
<Undo2 size={20} className='stroke-muted-foreground' />
</div>
);
}

0 comments on commit fde7a0e

Please sign in to comment.