Skip to content

Commit

Permalink
Extract locales: "Sign In" on a main page (#2443)
Browse files Browse the repository at this point in the history
Fixed extraction locales: "Sign In" on Main Page Header
  • Loading branch information
vivekpabari committed Apr 10, 2023
1 parent d4ca7ed commit 4c9ccd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/src/components/Header/Header.tsx
Expand Up @@ -13,6 +13,7 @@ import { UserMenu } from "./UserMenu";
import { UserScore } from "./UserScore";

function AccountButton() {
const { t } = useTranslation("common");
const { data: session } = useSession();
if (session) {
return null;
Expand All @@ -21,7 +22,7 @@ function AccountButton() {
<Link href="/auth/signin" aria-label="Home">
<Flex alignItems="center">
<Button variant="outline" leftIcon={<User size={"20"} />}>
Sign in
{t("sign_in")}
</Button>
</Flex>
</Link>
Expand All @@ -31,7 +32,7 @@ function AccountButton() {
export const HEADER_HEIGHT = "82px";

export function Header() {
const { t } = useTranslation();
const { t } = useTranslation("common");
const { data: session } = useSession();
const homeURL = session ? "/dashboard" : "/";

Expand Down

0 comments on commit 4c9ccd8

Please sign in to comment.