Commit fd032884 by asranov0003

refactor: terms and privacy

parent a642ccae
<!DOCTYPE html>
<meta charset="UTF-8" />
<div style="padding: 10px 40px; text-align: justify;">
<div>
<p>
<strong>Privacy policy</strong>
</p>
......
<!DOCTYPE html>
<meta charset="UTF-8" />
<div style="padding: 10px 40px; text-align: justify;">
<div>
<p><strong>Политика конфиденциальности</strong></p>
<p>Политика вступила в силу: 5 апреля 2023 года</p>
<p>
......
<!DOCTYPE html>
<meta charset="UTF-8" />
<div style="padding: 10px 40px; text-align: justify;">
<div>
<p>
<strong>Public offer</strong>
</p>
......
......@@ -2,7 +2,7 @@
<meta charset="UTF-8" />
<div style="padding: 10px 40px; text-align: justify;">
<div>
<p>
<strong>Публичная оферта</strong>
</p>
......
.privacy__back__link {
width: calc(100% - 2rem);
position: fixed;
top: 0;
background: var(--background-color);
text-decoration: none;
color: var(--text-color);
font-size: 1.5rem;
cursor: pointer;
}
.privacy__content {
padding: 10px 40px;
text-align: justify;
word-wrap: break-word;
box-sizing: border-box;
margin-top: 20px;
}
\ No newline at end of file
import React, { useEffect, useState } from "react";
import "./Privacy.css";
import { useTranslation } from "react-i18next";
import { BiArrowBack } from "react-icons/bi";
import { Link } from "react-router-dom";
......@@ -23,23 +24,12 @@ const Privacy: React.FC = () => {
return (
<div className="wrapper">
<Link
to={"/auth/register"}
style={{
textDecoration: "none",
cursor: "pointer",
fontSize: "1.5rem",
color: "#000000",
}}
>
<Link to={"/auth/register"} className="privacy__back__link">
<BiArrowBack />
</Link>
<div
dangerouslySetInnerHTML={{ __html: html }}
style={{
wordWrap: "break-word",
boxSizing: "border-box",
}}
className="privacy__content"
/>
</div>
);
......
.terms__back__link {
width: calc(100% - 2rem);
position: fixed;
top: 0;
background: var(--background-color);
text-decoration: none;
color: var(--text-color);
font-size: 1.5rem;
cursor: pointer;
}
.terms__content {
padding: 10px 40px;
text-align: justify;
word-wrap: break-word;
box-sizing: border-box;
margin-top: 20px;
}
\ No newline at end of file
import React, { useEffect, useState } from "react";
import "./Terms.css";
import { useTranslation } from "react-i18next";
import { BiArrowBack } from "react-icons/bi";
import { Link } from "react-router-dom";
......@@ -22,24 +23,14 @@ const Terms: React.FC = () => {
}, [i18n.language]);
return (
<div className="wrapper">
<Link
to={"/auth/register"}
style={{
textDecoration: "none",
cursor: "pointer",
fontSize: "1.5rem",
color: "#000000",
}}
>
<div className="wrapper terms">
<Link to={"/auth/register"} className="terms__back__link">
<BiArrowBack />
</Link>
<div
dangerouslySetInnerHTML={{ __html: html }}
style={{
wordWrap: "break-word",
boxSizing: "border-box",
}}
className="terms__content"
/>
</div>
);
......
......@@ -32,7 +32,7 @@ export const fetchMessengerHistory = createAsyncThunk(
{ rejectWithValue }
) => {
try {
const response = await sendRpcRequest("data.getcontent", {
const response = await sendRpcRequest<any[]>("data.getcontent", {
deviceId,
type: messengerId,
dateFrom,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment