Skip to content

Commit

Permalink
[TM-905] Add transife
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Jun 10, 2024
1 parent d4dc31f commit 651e603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pages/auth/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";
import { Button } from "@mui/material";
import { useT } from "@transifex/react";
import { usePathname } from "next/navigation";
import React from "react";
import { When } from "react-if";
Expand All @@ -13,7 +14,7 @@ interface LoginLayoutProps {
const LoginLayout: React.FC<LoginLayoutProps> = props => {
const { children } = props;
const pathname = usePathname();

const t = useT();
return (
<div className="relative flex h-screen w-full bg-square-pattern bg-contain bg-right bg-no-repeat">
<div className="mt-[-78px] flex w-[45%] flex-col items-center justify-center py-[78px]">
Expand All @@ -22,7 +23,7 @@ const LoginLayout: React.FC<LoginLayoutProps> = props => {
<div className="absolute bottom-[1.5vh] left-6">
<Button>
<Text variant="text-12-bold" className="text-primary">
English (United Kingdom)
{t("English (United Kingdom)")}
</Text>
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const OrganizationHeader = ({ organization }: OrganizationHeaderProps) => {
</Text>
</div>
<Text variant="text-body-900">
{formatOptionsList(getOrganisationTypeOptions(t), organization?.type!) || ""}
{formatOptionsList(getOrganisationTypeOptions(t), organization?.type!) ?? ""}
</Text>
<Text variant="text-body-400">{organization?.description}</Text>
</div>
Expand Down

0 comments on commit 651e603

Please sign in to comment.