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 },
|
{ id: 4, title: "Perguntas Adicionais", icon: MessageSquare },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function JobApplicationPage({
|
export default function JobApplicationPage({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -237,24 +240,22 @@ export default function JobApplicationPage({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={step.id}
|
key={step.id}
|
||||||
className={`flex flex-col items-center gap-2 ${
|
className={`flex flex-col items-center gap-2 ${isActive
|
||||||
isActive
|
|
||||||
? "text-primary"
|
? "text-primary"
|
||||||
: isCompleted
|
: isCompleted
|
||||||
? "text-primary/60"
|
? "text-primary/60"
|
||||||
: "text-muted-foreground"
|
: "text-muted-foreground"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={`
|
className={`
|
||||||
w-8 h-8 rounded-full flex items-center justify-center border-2 transition-colors
|
w-8 h-8 rounded-full flex items-center justify-center border-2 transition-colors
|
||||||
${
|
${isActive
|
||||||
isActive
|
|
||||||
? "border-primary bg-primary text-primary-foreground"
|
? "border-primary bg-primary text-primary-foreground"
|
||||||
: isCompleted
|
: isCompleted
|
||||||
? "border-primary bg-primary/10 text-primary"
|
? "border-primary bg-primary/10 text-primary"
|
||||||
: "border-muted-foreground/30 bg-background"
|
: "border-muted-foreground/30 bg-background"
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
{isCompleted ? (
|
{isCompleted ? (
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ import Link from "next/link";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export default function JobDetailPage({
|
export default function JobDetailPage({
|
||||||
params,
|
params,
|
||||||
}: {
|
}: {
|
||||||
|
|
@ -185,11 +188,10 @@ export default function JobDetailPage({
|
||||||
onClick={() => setIsFavorited(!isFavorited)}
|
onClick={() => setIsFavorited(!isFavorited)}
|
||||||
>
|
>
|
||||||
<Heart
|
<Heart
|
||||||
className={`h-4 w-4 ${
|
className={`h-4 w-4 ${isFavorited
|
||||||
isFavorited
|
|
||||||
? "fill-red-500 text-red-500"
|
? "fill-red-500 text-red-500"
|
||||||
: ""
|
: ""
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
|
@ -198,9 +200,8 @@ export default function JobDetailPage({
|
||||||
onClick={() => setIsBookmarked(!isBookmarked)}
|
onClick={() => setIsBookmarked(!isBookmarked)}
|
||||||
>
|
>
|
||||||
<Bookmark
|
<Bookmark
|
||||||
className={`h-4 w-4 ${
|
className={`h-4 w-4 ${isBookmarked ? "fill-current" : ""
|
||||||
isBookmarked ? "fill-current" : ""
|
}`}
|
||||||
}`}
|
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="outline" size="icon">
|
<Button variant="outline" size="icon">
|
||||||
|
|
@ -218,11 +219,10 @@ export default function JobDetailPage({
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
>
|
>
|
||||||
<Heart
|
<Heart
|
||||||
className={`h-4 w-4 mr-1 ${
|
className={`h-4 w-4 mr-1 ${isFavorited
|
||||||
isFavorited
|
|
||||||
? "fill-red-500 text-red-500"
|
? "fill-red-500 text-red-500"
|
||||||
: ""
|
: ""
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
{isFavorited ? "Favoritado" : "Favoritar"}
|
{isFavorited ? "Favoritado" : "Favoritar"}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -233,9 +233,8 @@ export default function JobDetailPage({
|
||||||
className="flex-1"
|
className="flex-1"
|
||||||
>
|
>
|
||||||
<Bookmark
|
<Bookmark
|
||||||
className={`h-4 w-4 mr-1 ${
|
className={`h-4 w-4 mr-1 ${isBookmarked ? "fill-current" : ""
|
||||||
isBookmarked ? "fill-current" : ""
|
}`}
|
||||||
}`}
|
|
||||||
/>
|
/>
|
||||||
{isBookmarked ? "Salvo" : "Salvar"}
|
{isBookmarked ? "Salvo" : "Salvar"}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue