Renames 'version' to full package.json import (#2132)

pull/2140/head
Alex van Andel 2022-03-14 10:20:40 +00:00 committed by GitHub
parent 6377377c4d
commit 3a5522cf0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ import Dropdown, {
DropdownMenuTrigger, DropdownMenuTrigger,
} from "@components/ui/Dropdown"; } from "@components/ui/Dropdown";
import { version } from "../package.json"; import pkg from "../package.json";
import { useViewerI18n } from "./I18nLanguageHandler"; import { useViewerI18n } from "./I18nLanguageHandler";
import Logo from "./Logo"; import Logo from "./Logo";
import Button from "./ui/Button"; import Button from "./ui/Button";
@ -257,7 +257,7 @@ export default function Shell(props: {
</span> </span>
</div> </div>
<small style={{ fontSize: "0.5rem" }} className="mx-3 mt-1 mb-2 hidden opacity-50 lg:block"> <small style={{ fontSize: "0.5rem" }} className="mx-3 mt-1 mb-2 hidden opacity-50 lg:block">
&copy; {new Date().getFullYear()} Cal.com, Inc. v.{version + "-"} &copy; {new Date().getFullYear()} Cal.com, Inc. v.{pkg.version + "-"}
{process.env.NEXT_PUBLIC_APP_URL === "https://cal.com" ? "h" : "sh"} {process.env.NEXT_PUBLIC_APP_URL === "https://cal.com" ? "h" : "sh"}
<span className="lowercase">-{user && user.plan}</span> <span className="lowercase">-{user && user.plan}</span>
</small> </small>