fix(frontend): add edge runtime config for dynamic routes
This commit is contained in:
parent
88e4596b62
commit
bc64a76ce2
2 changed files with 22 additions and 22 deletions
|
|
@ -52,6 +52,9 @@ const steps = [
|
|||
{ id: 4, title: "Perguntas Adicionais", icon: MessageSquare },
|
||||
];
|
||||
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default function JobApplicationPage({
|
||||
params,
|
||||
}: {
|
||||
|
|
@ -237,8 +240,7 @@ export default function JobApplicationPage({
|
|||
return (
|
||||
<div
|
||||
key={step.id}
|
||||
className={`flex flex-col items-center gap-2 ${
|
||||
isActive
|
||||
className={`flex flex-col items-center gap-2 ${isActive
|
||||
? "text-primary"
|
||||
: isCompleted
|
||||
? "text-primary/60"
|
||||
|
|
@ -248,8 +250,7 @@ export default function JobApplicationPage({
|
|||
<div
|
||||
className={`
|
||||
w-8 h-8 rounded-full flex items-center justify-center border-2 transition-colors
|
||||
${
|
||||
isActive
|
||||
${isActive
|
||||
? "border-primary bg-primary text-primary-foreground"
|
||||
: isCompleted
|
||||
? "border-primary bg-primary/10 text-primary"
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ import Link from "next/link";
|
|||
import { useState } from "react";
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export default function JobDetailPage({
|
||||
params,
|
||||
}: {
|
||||
|
|
@ -185,8 +188,7 @@ export default function JobDetailPage({
|
|||
onClick={() => setIsFavorited(!isFavorited)}
|
||||
>
|
||||
<Heart
|
||||
className={`h-4 w-4 ${
|
||||
isFavorited
|
||||
className={`h-4 w-4 ${isFavorited
|
||||
? "fill-red-500 text-red-500"
|
||||
: ""
|
||||
}`}
|
||||
|
|
@ -198,8 +200,7 @@ export default function JobDetailPage({
|
|||
onClick={() => setIsBookmarked(!isBookmarked)}
|
||||
>
|
||||
<Bookmark
|
||||
className={`h-4 w-4 ${
|
||||
isBookmarked ? "fill-current" : ""
|
||||
className={`h-4 w-4 ${isBookmarked ? "fill-current" : ""
|
||||
}`}
|
||||
/>
|
||||
</Button>
|
||||
|
|
@ -218,8 +219,7 @@ export default function JobDetailPage({
|
|||
className="flex-1"
|
||||
>
|
||||
<Heart
|
||||
className={`h-4 w-4 mr-1 ${
|
||||
isFavorited
|
||||
className={`h-4 w-4 mr-1 ${isFavorited
|
||||
? "fill-red-500 text-red-500"
|
||||
: ""
|
||||
}`}
|
||||
|
|
@ -233,8 +233,7 @@ export default function JobDetailPage({
|
|||
className="flex-1"
|
||||
>
|
||||
<Bookmark
|
||||
className={`h-4 w-4 mr-1 ${
|
||||
isBookmarked ? "fill-current" : ""
|
||||
className={`h-4 w-4 mr-1 ${isBookmarked ? "fill-current" : ""
|
||||
}`}
|
||||
/>
|
||||
{isBookmarked ? "Salvo" : "Salvar"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue