Skip to content

Commit

Permalink
refactor: move SHOW_EARLY_BIRD constant to lib/const and update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 committed Nov 28, 2024
1 parent 295ce4a commit 51b0956
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/cfp/(submission)/_components/early-bird.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { SHOW_EARLY_BIRD } from "@/app/layout";
import { SHOW_EARLY_BIRD } from "@/lib/const";
import { AnimatePresence, motion } from "framer-motion";
import { useState } from "react";

Expand Down
2 changes: 1 addition & 1 deletion app/cfp/(submission)/normal/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Link from "next/link";
import Image from "next/image";
import { ReactNode } from "react";
import EarlyBird from "../_components/early-bird";
import { SHOW_EARLY_BIRD } from "@/app/layout";
import { SHOW_EARLY_BIRD } from "@/lib/const";

function PresentationBlock(presentation: { title: string; id: string }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/cfp/(submission)/poster/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TableOfContent from "../_components/table-of-content";
import FAQ from "../../_components/faq";
import { InformationField } from "../normal/page";
import EarlyBird from "../_components/early-bird";
import { SHOW_EARLY_BIRD } from "@/app/layout";
import { SHOW_EARLY_BIRD } from "@/lib/const";

export default function Page() {
const sections = [
Expand Down
2 changes: 1 addition & 1 deletion app/cfp/(submission)/undefined/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import FAQ from "../../_components/faq";
import Link from "next/link";
import { InformationField } from "../normal/page";
import EarlyBird from "../_components/early-bird";
import { SHOW_EARLY_BIRD } from "@/app/layout";
import { SHOW_EARLY_BIRD } from "@/lib/const";

export default function Page() {
const sections = [
Expand Down
2 changes: 0 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { config } from "@fortawesome/fontawesome-svg-core";
import "@fortawesome/fontawesome-svg-core/styles.css";
config.autoAddCss = false;

export const SHOW_EARLY_BIRD = false;

const inter = Inter({ subsets: ["latin"] });
export default function Layout({ children }: { children: ReactNode }) {
const jsonLd = {
Expand Down
1 change: 1 addition & 0 deletions lib/const.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const SHOW_EARLY_BIRD = false;

0 comments on commit 51b0956

Please sign in to comment.