ссылки при переходе с шильдика меняются в зависимости от того прод это или нет

This commit is contained in:
Tamara 2024-04-24 01:25:07 +03:00
parent bac3f9b7c1
commit bff5abe1fc
2 changed files with 4 additions and 4 deletions

@ -321,12 +321,12 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
/>
<Typography sx={{ color: theme.palette.text.primary }}>
С&ensp;
<Link href={"https://shub.pena.digital/ppdd"} target="_blank">
<Link href={`https://${window.location.hostname.includes("s") ? "s" : ""}hub.pena.digital/ppdd`} target="_blank">
Положением об обработке персональных данных{" "}
</Link>
&ensp;и&ensp;
<Link
href={"https://shub.pena.digital/docs/privacy"}
href={`https://${window.location.hostname.includes("s") ? "s" : ""}hub.pena.digital/docs/privacy`}
target="_blank"
>
{" "}

@ -40,7 +40,7 @@ export const Question = ({
questionSelect,
}: Props) => {
const theme = useTheme();
const { settings, show_badge } = useQuizData();
const { settings, show_badge, quizId } = useQuizData();
return (
<Box
@ -97,7 +97,7 @@ export const Question = ({
{show_badge && (
<Link
target="_blank"
href="https://quiz.pena.digital"
href={`https://${window.location.hostname.includes("s") ? "s" : ""}quiz.pena.digital/squiz/quiz/logo?q=${quizId}`}
sx={{
mt: "20px",
alignSelf: "end",