pages rename
This commit is contained in:
1 parent
0fc8f68c79
commit
140adb0051
22 files changed
+36
-31
No files matched your search
File renamed without changes.
@@ -135,7 +135,7 @@ export const ProjectTicket = ({ project, index }) => {
|
|||||||
<img src={edit}></img>
|
<img src={edit}></img>
|
||||||
<p>редактировать</p>
|
<p>редактировать</p>
|
||||||
</div>
|
</div>
|
||||||
<div onClick={copyProjectLink(project.id)}>
|
<div onClick={() => copyProjectLink(project.id)}>
|
||||||
<img src={link}></img>
|
<img src={link}></img>
|
||||||
<p>скопировать ссылку</p>
|
<p>скопировать ссылку</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export const AuthForCandidate = () => {
|
|||||||
resetModal={setModalReset}
|
resetModal={setModalReset}
|
||||||
title="Войти, если есть доступ"
|
title="Войти, если есть доступ"
|
||||||
description="Если вы получили доступ, пройдя
|
description="Если вы получили доступ, пройдя
|
||||||
2 шага для входа или хотите узнать
|
2 шага для входа, или хотите узнать
|
||||||
свои результаты в кабинете"
|
свои результаты в кабинете"
|
||||||
/>
|
/>
|
||||||
<div className="auth-candidate__start">
|
<div className="auth-candidate__start">
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,12 +2,15 @@ import React from "react";
|
|||||||
|
|
||||||
import { Navigation } from "@components/Navigation/Navigation";
|
import { Navigation } from "@components/Navigation/Navigation";
|
||||||
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
||||||
|
import { Footer } from "@components/common/Footer/Footer";
|
||||||
|
|
||||||
export const Payouts = () => {
|
export const Payouts = () => {
|
||||||
return (
|
return (
|
||||||
<div className="payouts">
|
<div className="payouts">
|
||||||
<ProfileHeader />
|
<ProfileHeader />
|
||||||
<Navigation />
|
<Navigation />
|
||||||
|
<div className="container"></div>
|
||||||
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -105,7 +105,10 @@ const Statistics = () => {
|
|||||||
<div className="statistics-header__menu">
|
<div className="statistics-header__menu">
|
||||||
<h1>Статистика проекта</h1>
|
<h1>Статистика проекта</h1>
|
||||||
<img src={link} alt="#" />
|
<img src={link} alt="#" />
|
||||||
<span className="return-text" onClick={copyProjectLink("62")}>
|
<span
|
||||||
|
className="return-text"
|
||||||
|
onClick={() => copyProjectLink("62")}
|
||||||
|
>
|
||||||
ссылка на проект
|
ссылка на проект
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+27
-28
@@ -2,34 +2,33 @@ export function createMarkup(text) {
|
|||||||
return { __html: text.split("</p>").join("</p>") };
|
return { __html: text.split("</p>").join("</p>") };
|
||||||
}
|
}
|
||||||
|
|
||||||
// export function transformHtml(text) {
|
export function transformHtml(text) {
|
||||||
// let startHtml = {
|
let startHtml = {
|
||||||
// __html: text.split("<h3> || <h2>").join("<br><h2>").split("<br>"),
|
__html: text.split("<h3> || <h2>").join("<br><h2>").split("<br>")
|
||||||
// };
|
};
|
||||||
// startHtml = startHtml.__html.filter(
|
startHtml = startHtml.__html.filter(
|
||||||
// (el) => (el !== null && el !== "") || el === 0
|
(el) => (el !== null && el !== "") || el === 0
|
||||||
// );
|
);
|
||||||
// const finalHtml = startHtml.map(
|
const finalHtml = startHtml.map(
|
||||||
// (item) =>
|
(item) =>
|
||||||
// `<div class='experience__block'>
|
`<div class='experience__block'>
|
||||||
// <div class="summary__sections__head">
|
<div class="summary__sections__head">
|
||||||
// <h3>Описание опыта работы</h3>
|
<h3>Описание опыта работы</h3>
|
||||||
// <button>Редактировать</button>
|
<button>Редактировать</button>
|
||||||
// </div>
|
</div>
|
||||||
// <div class="experience__content">${item.split("<h3>")[0]}</div>
|
<div class="experience__content">${item.split("<h3>")[0]}</div>
|
||||||
// </div>`
|
</div>`
|
||||||
// );
|
);
|
||||||
// return { __html: finalHtml.join("") };
|
return { __html: finalHtml.join("") };
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// export const setToken = () => {
|
export const setToken = () => {
|
||||||
// const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
// const urlT = url.searchParams.get("token");
|
const urlT = url.searchParams.get("token");
|
||||||
// urlT ? sessionStorage.setItem('token', 'Bearer ' + urlT) : '';
|
urlT ? sessionStorage.setItem("token", "Bearer " + urlT) : "";
|
||||||
// const tParam = urlT || sessionStorage.getItem('token');
|
const tParam = urlT || sessionStorage.getItem("token");
|
||||||
// return tParam ? {"Authorization": tParam} : false
|
return tParam ? { Authorization: tParam } : false;
|
||||||
//
|
};
|
||||||
// };
|
|
||||||
|
|
||||||
export const getToken = () => {
|
export const getToken = () => {
|
||||||
const tParam = `Bearer ${localStorage.getItem("auth_token")}`;
|
const tParam = `Bearer ${localStorage.getItem("auth_token")}`;
|
||||||
|
|||||||
Reference in new issue
Block a user