Merge branch 'fix-visual' into 'staging'
передача токена хабу See merge request frontend/squiz!155
This commit is contained in:
commit
3339b35fc6
@ -1,5 +1,5 @@
|
||||
import { Link, useLocation, useNavigate } from "react-router-dom";
|
||||
import { makeRequest } from "@frontend/kitui";
|
||||
import { makeRequest, useToken } from "@frontend/kitui";
|
||||
import { useEffect, useState } from "react";
|
||||
import type { GetTariffsResponse } from "@model/tariff";
|
||||
import { clearAuthToken } from "@frontend/kitui";
|
||||
@ -38,6 +38,7 @@ const StepperText: Record<string, string> = {
|
||||
|
||||
function TariffPage() {
|
||||
const theme = useTheme();
|
||||
const token = useToken()
|
||||
const isTablet = useMediaQuery(theme.breakpoints.down(1000));
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
@ -133,7 +134,8 @@ function TariffPage() {
|
||||
"https://hub.pena.digital" +
|
||||
`/quizpayment?action=squizpay&dif=${
|
||||
(price - Number(user.wallet.cash)) * 100
|
||||
}`;
|
||||
}&data=${token}
|
||||
`;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user