Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadRabi committed Aug 12, 2024
1 parent 2b251ed commit 2c0b916
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# testing
/coverage
/test-route
# next.js
/.next/
/out/
Expand Down
15 changes: 0 additions & 15 deletions app/api/test-route/route.ts

This file was deleted.

3 changes: 3 additions & 0 deletions components/Checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { ProductToBuyParams } from '@/types'
import { Button } from './ui/button'
import { ShoppingCart } from 'lucide-react'
import { checkoutProduct } from '@/lib/actions/transaction.action'
import { loadStripe } from '@stripe/stripe-js'

loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY!)

const Checkout = ({ name, price, desc, buyerId }: ProductToBuyParams) => {
const handleCheckout = () => {
Expand Down
4 changes: 2 additions & 2 deletions components/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function NavLinks() {
>
Dashboard
</Link>
<Link
{/* <Link
href='/server'
className={`${pathname === '/server' ? 'text-pink-600' : ''}`}
>
Expand All @@ -27,7 +27,7 @@ function NavLinks() {
className={`${pathname === '/client' ? 'text-pink-600' : ''}`}
>
Client
</Link>
</Link> */}
<Link
href='/products'
className={`${pathname === '/products' ? 'text-pink-600' : ''}`}
Expand Down

0 comments on commit 2c0b916

Please sign in to comment.