Skip to content

Commit

Permalink
changed activity section
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Mar 25, 2024
1 parent a4ec10d commit 027f235
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/@drawer/(.)transactions/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default function Page() {
</p>
</div>
{month.transactions
.slice(0, 3)
.slice(0, 5)
.map((transaction, j) => (
<motion.div
className='grid h-fit w-full space-y-6'
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/CreditCard/CreditCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function CreditCard() {
return (
<>
<HoverBorderGradient className='relative grid h-52 w-full rounded-xl shadow-lg'>
<div className='to-tr absolute -z-50 h-full w-full rounded-xl bg-transparent bg-gradient-to-r from-slate-50/10 backdrop-blur-xl'>
<div className='absolute -z-50 h-full w-full rounded-xl bg-transparent bg-gradient-to-tr from-slate-50/10 backdrop-blur-xl'>
<></>
</div>

Expand Down
7 changes: 3 additions & 4 deletions src/app/components/activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
CardTitle,
} from '@/app/components/ui/card';
import { Button } from '../ui/button';
import { setSheet } from '@/GlobalRedux/Features/sheet/sheetSlice';

export default function Activity() {
const [transactions, setTxs] = useState<any>([]);
Expand Down Expand Up @@ -49,7 +48,7 @@ export default function Activity() {

useEffect(() => {
/* dispatch(setTransactions(transactions)); */
setTxs(transactionState?.slice(0, 3));
setTxs(transactionState?.slice(0, 5));
}, [transactionState]); // Add transactions as a dependency

return (
Expand All @@ -59,15 +58,15 @@ export default function Activity() {
key='activity-key'
layoutId='activity'
transition={{ duration: 0.3 }}
className='bg-muted w-full rounded-full text-xl '
className='bg-slate-50/10 backdrop-blur-xl w-full rounded-full text-xl '
>
<Card className=''>
<CardHeader>
<motion.div>
<CardTitle>Recent Transactions</CardTitle>
</motion.div>
</CardHeader>
<CardContent className=''>
<CardContent className=' '>
<div className='mt-4 space-y-8'>
{transactions &&
transactions.map((transaction: any, i: any) => (
Expand Down
2 changes: 1 addition & 1 deletion src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default function Page() {
</Link>
</div>
</motion.div>
<div className='bg-accent/90 relative mt-4 w-full rounded-t-3xl bg-opacity-10 bg-clip-padding p-4 backdrop-blur-sm backdrop-filter'>
<div className=' relative mt-4 w-full rounded-t-3xl bg-opacity-10 bg-clip-padding p-4 backdrop-blur-sm backdrop-filter'>

{/* <Tab.Group>
<Tab.List>
Expand Down

0 comments on commit 027f235

Please sign in to comment.