Skip to content

Commit

Permalink
Merge pull request #2 from dromzeh/fix/build-fail
Browse files Browse the repository at this point in the history
fix: build fail & vehicledetailsform height
  • Loading branch information
nathanclevenger authored Aug 29, 2023
2 parents b154fc8 + 83014bb commit e1e5dc6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 23 deletions.
21 changes: 1 addition & 20 deletions src/app/og/route.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,14 @@
import { ImageResponse } from 'next/server'

export const runtime = 'edge'

export const alt = 'driv.ly logo'

const metadata = {
size: {
width: 1200,
height: 630
}
}

export const contentType = 'image/png'

interface OptionalParams {
VIN?: string
}

export async function GET(params: OptionalParams): Promise<ImageResponse> {
params.VIN = '1G1YY26E385132782'

if (params.VIN) {
const { VIN } = params

const vinData = await fetch(`https://specs.vin/${VIN}`).then((res) =>
res.json()
)
}

export async function GET() {
return new ImageResponse(
(
<div tw="p-10 justify-center items-center w-full h-full text-black relative flex">
Expand Down
4 changes: 3 additions & 1 deletion src/components/calculator/TabsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export function TabsLayout() {
</TabsTrigger>
</TabsList>
</div>
<PaymentHandler selectedTab={selectedTab} />
<div className="mb-10">
<PaymentHandler selectedTab={selectedTab} />
</div>
</Tabs>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function PaymentHandlerResponse({
.catch((error) =>
console.error('Error fetching payments data', error)
)
}, 500)
}, 200)
} else {
router.push('/')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function VehicleDetailsForm() {
return (
<Form {...form}>
<form className="w-full md:w-[400px]">
<div className="my-2 space-y-4">
<div className="space-y-4">
<Card className="w-full">
<CardContent className="mt-6">
<div>
Expand Down

0 comments on commit e1e5dc6

Please sign in to comment.