add tag version to footer (#725)

This commit is contained in:
Dan Ditomaso
2025-07-20 14:53:44 -04:00
committed by GitHub
parent d8304a3f00
commit bfe4e01c85
4 changed files with 24 additions and 11 deletions
+9 -7
View File
@@ -1,13 +1,11 @@
import { cn } from "@core/utils/cn.ts";
import { Trans, useTranslation } from "react-i18next";
import { Trans } from "react-i18next";
type FooterProps = {
className?: string;
};
const Footer = ({ className, ...props }: FooterProps) => {
const { t } = useTranslation();
return (
<footer
className={cn(
@@ -16,11 +14,15 @@ const Footer = ({ className, ...props }: FooterProps) => {
)}
{...props}
>
<div className="justify-start px-2">
<div className="px-2">
<span className="font-semibold text-gray-500/40 dark:text-gray-400/40">
{t("footer.commitSha", {
sha: String(import.meta.env.VITE_COMMIT_HASH)?.toUpperCase(),
})}
{String(import.meta.env.VITE_VERSION)?.toUpperCase()}
</span>
<span className="font-semibold text-gray-500/40 dark:text-gray-400/40 mx-2">
-
</span>
<span className="font-semibold text-gray-500/40 dark:text-gray-400/40">
{`#${String(import.meta.env.VITE_COMMIT_HASH)?.toUpperCase()}`}
</span>
</div>
<p className="ml-auto mr-auto text-gray-500 dark:text-gray-400">