Skip to content

Commit

Permalink
fixed more layout transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 16, 2024
1 parent bea7fc3 commit 997de36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/app/@auth/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import SheetLayout from '@/app/components/Layouts/SheetLayout';
import { Metadata } from 'next';
import * as React from 'react';
import TransitionLayout from '../components/Layouts/TransitionLayout';

export default function ComponentsLayout({
children,
Expand All @@ -11,9 +10,7 @@ export default function ComponentsLayout({
}) {
return (
<>
<SheetLayout>
<TransitionLayout>{children}</TransitionLayout>
</SheetLayout>
<SheetLayout>{children}</SheetLayout>
</>
);
}
4 changes: 2 additions & 2 deletions src/app/components/RecentTransaction/RecentTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function RecentTransaction({ transaction }: any) {
const address = useGetAddress();

return (
<motion.div layoutId={transaction.hash}>
<div className=''>
<Link href={{ pathname: '/tx', query: { hash: transaction.hash } }}>
{/* <motion.div className='bg-background mb-4 flex content-center justify-between rounded-md border p-2 text-base transition-all duration-300'>
<div className='flex items-center'>
Expand Down Expand Up @@ -78,6 +78,6 @@ export default function RecentTransaction({ transaction }: any) {
</div>
</div>
</Link>
</motion.div>
</div>
);
}
2 changes: 2 additions & 0 deletions src/app/components/activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export default function Activity() {
{transactions &&
transactions.map((transaction: any, i: any) => (
<motion.div
className='h-fit w-full'
layoutId={transaction.hash}
/* layoutId={`activity-${transaction.hash}`} */
key={i}
>
Expand Down
5 changes: 4 additions & 1 deletion src/app/transactions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export default function Page() {
{transactions &&
transactions.map((transaction: any, i: any) => (
<motion.div
/* layoutId={`activity-${transaction.hash}`} */ key={i}
className='h-fit w-full'
layoutId={transaction.hash}
/* layoutId={`activity-${transaction.hash}`} */
key={i}
>
<RecentTransaction transaction={transaction} />
</motion.div>
Expand Down

0 comments on commit 997de36

Please sign in to comment.