Add commit sha to footer. (#636)

* feat: added commit sha to footer.

* added translation

* added padding

* updated styling
This commit is contained in:
Dan Ditomaso
2025-06-01 20:41:25 -04:00
committed by GitHub
parent 08dbe94679
commit df036d3904
7 changed files with 138 additions and 129 deletions
+11 -2
View File
@@ -1,11 +1,13 @@
import { cn } from "@core/utils/cn.ts";
import { Trans } from "react-i18next";
import { Trans, useTranslation } from "react-i18next";
type FooterProps = {
className?: string;
};
const Footer = ({ className, ...props }: FooterProps) => {
const { t } = useTranslation();
return (
<footer
className={cn(
@@ -14,7 +16,14 @@ const Footer = ({ className, ...props }: FooterProps) => {
)}
{...props}
>
<p>
<div className="justify-start 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(),
})}
</span>
</div>
<p className="ml-auto mr-auto text-gray-500 dark:text-gray-400">
<Trans
i18nKey="footer.text"
components={[