Fix Coming soon
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Locale } from "@/lib/i18n";
|
||||
import type { CommonContent } from "@/content/types";
|
||||
import { getModeValue } from "@/lib/site";
|
||||
import { getModeValue, isComingSoonMode } from "@/lib/site";
|
||||
|
||||
type SiteFooterProps = {
|
||||
locale: Locale;
|
||||
@@ -10,6 +10,7 @@ type SiteFooterProps = {
|
||||
export default function SiteFooter({ locale, common }: SiteFooterProps) {
|
||||
const year = new Date().getFullYear();
|
||||
const commonVariant = getModeValue(common.variants);
|
||||
const isComingSoon = isComingSoonMode();
|
||||
|
||||
return (
|
||||
<footer className="site-footer">
|
||||
@@ -18,7 +19,7 @@ export default function SiteFooter({ locale, common }: SiteFooterProps) {
|
||||
<p>{common.footerRights.replace("{year}", String(year))}</p>
|
||||
<p>{commonVariant.footerBuiltWith}</p>
|
||||
</div>
|
||||
<p className="locale-badge">{locale.toUpperCase()}</p>
|
||||
{!isComingSoon ? <p className="locale-badge">{locale.toUpperCase()}</p> : null}
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user