Skip to content

Commit

Permalink
added logic for undefined tenant in header and add employe in view ur…
Browse files Browse the repository at this point in the history
…l page (#1385)

fix
  • Loading branch information
aaradhya-egov authored Sep 12, 2024
1 parent 815f9fa commit 6904f6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Header = ({ showTenant = true }) => {
return (
<div className="bannerHeader">
<img className="bannerLogo" src={stateInfo?.logoUrl} style={!showTenant ? { borderRight: "unset" } : {}} />
{showTenant && <p>{t(`TENANT_TENANTS_${stateInfo?.code?.toUpperCase()}`)}</p>}
{showTenant && stateInfo?.code && <p>{t(`TENANT_TENANTS_${stateInfo?.code?.toUpperCase()}`)}</p>}
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const Login = ({ config: propsConfig, t, isDisabled, loginOTPBased }) => {
cardClassName="loginCardClassName"
buttonClassName="buttonClassName"
>
<Header />
{stateInfo?.code ? <Header /> : <Header showTenant={false} /> }
</FormComposerV2>
{showToast && <Toast type={"error"} label={t(showToast)} onClose={closeToast} />}
<div className="employee-login-home-footer" style={{ backgroundColor: "unset" }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,14 @@ const ViewUrl = () => {
{t("SANDBOX_HEADER")}
</CardHeader>
<CardText className="cardText-sandbox">{t("SAMDBOX_URL_SUB")}</CardText>
{/* <FieldV1
className="field-sandbox"
withoutLabel={false}
label={t("SANDBOX_URL")}
type="text"
nonEditable={false}
value={`${window.location.host}/${window?.globalPath}/${tenant}`}
placeholder={t("SANDBOX_URL_PLACEHOLDER")}
populators={{}}
/> */}
<CardLabel> {t("SANDBOX_URL")} </CardLabel>
<div className="sandbox-url-wrapper">
<TextInput
inputRef={ref}
className={"urlInputText"}
onChange={() => {}}
nonEditable={true}
value={`${window.location.host}/${window?.globalPath}/${tenant}`}
value={`${window.location.host}/${window?.globalPath}/${tenant}/employee`}
/>
<Button className="copyButton" variation={"secondary"} onClick={() => handleCopyUrl()} label={t("COPY_URL")}></Button>
</div>
Expand Down

0 comments on commit 6904f6e

Please sign in to comment.