ссылки при переходе с шильдика меняются в зависимости от того прод это или нет
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 }}>
|
||||
С 
|
||||
<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
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user