ссылки при переходе с шильдика меняются в зависимости от того прод это или нет
This commit is contained in:
parent
bac3f9b7c1
commit
bff5abe1fc
@ -321,12 +321,12 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
|
|||||||
/>
|
/>
|
||||||
<Typography sx={{ color: theme.palette.text.primary }}>
|
<Typography sx={{ color: theme.palette.text.primary }}>
|
||||||
С 
|
С 
|
||||||
<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>
|
</Link>
|
||||||
 и 
|
 и 
|
||||||
<Link
|
<Link
|
||||||
href={"https://shub.pena.digital/docs/privacy"}
|
href={`https://${window.location.hostname.includes("s") ? "s" : ""}hub.pena.digital/docs/privacy`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{" "}
|
{" "}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export const Question = ({
|
|||||||
questionSelect,
|
questionSelect,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { settings, show_badge } = useQuizData();
|
const { settings, show_badge, quizId } = useQuizData();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
@ -97,7 +97,7 @@ export const Question = ({
|
|||||||
{show_badge && (
|
{show_badge && (
|
||||||
<Link
|
<Link
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="https://quiz.pena.digital"
|
href={`https://${window.location.hostname.includes("s") ? "s" : ""}quiz.pena.digital/squiz/quiz/logo?q=${quizId}`}
|
||||||
sx={{
|
sx={{
|
||||||
mt: "20px",
|
mt: "20px",
|
||||||
alignSelf: "end",
|
alignSelf: "end",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user