Skip to content

Commit

Permalink
fix: add NEXT_PUBLIC to ticket env
Browse files Browse the repository at this point in the history
  • Loading branch information
ssshojaei committed Jan 30, 2024
1 parent 57ae27b commit 8393325
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/components/AdditionalPlans/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Header = () => {
</p>
<Link
target="_blank"
href={env.TICKET_URL ?? "#?"}
href={env.NEXT_PUBLIC_TICKET_URL ?? "#?"}
className={`${buttonVariants({
variant: "primary",
})} mt-4 gap-2 px-2 py-1.5 lg:mt-6 lg:gap-2 lg:px-3 lg:py-2`}
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/ConferenceTicket/ConferenceTicket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
RiVipDiamondFill,
} from "react-icons/ri";
import TicketPlanCard from "./TicketPlanCard";
import { env } from "process";

export default function ConferenceLocation() {
return (
Expand All @@ -21,7 +20,7 @@ export default function ConferenceLocation() {
<h3 className="text-2xl font-bold lg:text-3xl">بلیت‌های همایش</h3>
<Link
target="_blank"
href={env.TICKET_URL ?? "#?"}
href={NEXT_PUBLIC_TICKET_URL ?? "#?"}
className={`${buttonVariants({
variant: "primary",
})} mt-4 gap-2 px-2 py-1.5 lg:mt-6 lg:gap-2 lg:px-3 lg:py-2`}
Expand Down
3 changes: 1 addition & 2 deletions src/app/components/ConferenceTicket/TicketPlanCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { cn } from "@/utils/styles";
import Link from "next/link";
import { env } from "process";
import { ReactNode } from "react";

interface TicketPlanCardProps {
Expand All @@ -20,7 +19,7 @@ interface TicketPlanCardProps {
const TicketPlanCard = (props: TicketPlanCardProps) => {
return (
<Link
href={env.TICKET_URL ?? "#?"}
href={NEXT_PUBLIC_TICKET_URL ?? "#?"}
target="_blank"
className={cn({
"pointer-events-none": props.soldOut,
Expand Down
3 changes: 1 addition & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { buttonVariants } from "@/components/ui/Button";
import Image from "next/image";
import Link from "next/link";
import { env } from "process";
import { RiCouponFill, RiMenuLine } from "react-icons/ri";

const Navbar = () => {
Expand Down Expand Up @@ -35,7 +34,7 @@ const Navbar = () => {
<div className="flex items-end gap-4 text-end">
<Link
target="_blank"
href={env.TICKET_URL ?? "#?"}
href={NEXT_PUBLIC_TICKET_URL ?? "#?"}
className={`${buttonVariants({
variant: "primary",
})} gap-1 px-2 py-1.5 lg:gap-2 lg:px-3 lg:py-2`}
Expand Down

0 comments on commit 8393325

Please sign in to comment.