Skip to content

Commit

Permalink
links with target=_blank
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Apr 26, 2024
1 parent 9faee37 commit 0e42d5f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/about/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const About = () => {
<UserCard title={t("title")} handleSubmit={() => { }}>
<Typography className={styles.title} variant="h4"></Typography>
<Typography>{t("text")}
<PBLink to="https://pilasbloques.program.ar/acerca-de-pilas-bloques/" target="_blank">{t("redirect")}</PBLink>
<PBLink to="https://pilasbloques.program.ar/acerca-de-pilas-bloques/">{t("redirect")}</PBLink>
</Typography>
</UserCard>
</>
Expand Down
8 changes: 4 additions & 4 deletions src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type PBLinkProps = {
children: React.ReactNode
}

export const PBLink = (props: LinkProps & PBLinkProps) => <Link {...props} style={{color: 'var(--theme-link-color)'}}>{props.children}</Link>
export const PBLink = (props: LinkProps & PBLinkProps) => <Link {...props} target='_blank' style={{color: 'var(--theme-link-color)'}}>{props.children}</Link>


const Version = () => {
Expand All @@ -28,11 +28,11 @@ const Version = () => {
return (
<Stack direction="row" gap={0.5}>
{t("version")}
<PBLink to={newsUrl} target="_blank">
<PBLink to={newsUrl}>
{appVersion}
</PBLink>
<Code />
<PBLink to={repoUrl} target="_blank">
<PBLink to={repoUrl}>
{lastCommitHash}
</PBLink>
</Stack>
Expand All @@ -42,7 +42,7 @@ const Version = () => {

const Links = () => {
const {t} = useTranslation("footer")
const teachersSiteUrl = new URL(`/docentes`, siteUrl).toString()
const teachersSiteUrl = 'https://pilasbloques.program.ar/docentes/'

return (
<Stack direction="row" gap={1}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/users/register/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ export const Register: FC = () => {
<Collapse style={{ padding: "10px" }} in={whyReqData}>
<Typography>{t("whyData.privacy")}</Typography>
<Typography>{t("whyData.dataProtectionLaw")}&nbsp;
<PBLink target="_blank" to={termsAndConditionsLink}>{t("linkTerms")}</PBLink></Typography>
<PBLink to={termsAndConditionsLink}>{t("linkTerms")}</PBLink></Typography>
<Typography>{t("whyData.parentalContact")}&nbsp;
<PBMailLink />&nbsp;
{t("whyData.whyContact")}</Typography>
</Collapse>
</Stack>

<FormControlLabel
label={<Typography>{t('terms')}<PBLink target="_blank" to={termsAndConditionsLink}>{t("linkTerms")}</PBLink></Typography>}
label={<Typography>{t('terms')}<PBLink to={termsAndConditionsLink}>{t("linkTerms")}</PBLink></Typography>}
control={<Checkbox sx={{ color: theme.palette.primary.main }}
onChange={() => setTermAndConditions(!termsAndConditions)}
required />
Expand Down

0 comments on commit 0e42d5f

Please sign in to comment.