fix: remove percents and fix a date and a name
This commit is contained in:
parent
4ef1093119
commit
be8cc03f7f
@ -11,6 +11,7 @@ function CompatResultPage(): JSX.Element {
|
|||||||
"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIzNjEyLCJpYXQiOjE2OTM0MTg5MTAsImV4cCI6MTcwMjA1ODkxMCwianRpIjoiNzg5MjkwYWItODg0YS00MGUyLTkyNjEtOWI2OGEyNjkwNmE0IiwiZW1haWwiOiJvdGhlckBleGFtcGxlLmNvbSIsInN0YXRlIjoicHJvdmVuIiwibG9jIjoiZW4iLCJ0eiI6LTI4ODAwLCJ0eXBlIjoiZW1haWwiLCJpc3MiOiJjb20ubGlmZS5hdXJhIn0.J2ocWIv5jKzuKMcwMgWMiNMyGg5qLlMAeln-bQm_9lw";
|
"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIzNjEyLCJpYXQiOjE2OTM0MTg5MTAsImV4cCI6MTcwMjA1ODkxMCwianRpIjoiNzg5MjkwYWItODg0YS00MGUyLTkyNjEtOWI2OGEyNjkwNmE0IiwiZW1haWwiOiJvdGhlckBleGFtcGxlLmNvbSIsInN0YXRlIjoicHJvdmVuIiwibG9jIjoiZW4iLCJ0eiI6LTI4ODAwLCJ0eXBlIjoiZW1haWwiLCJpc3MiOiJjb20ubGlmZS5hdXJhIn0.J2ocWIv5jKzuKMcwMgWMiNMyGg5qLlMAeln-bQm_9lw";
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const api = useApi();
|
const api = useApi();
|
||||||
|
const birthdate = useSelector(selectors.selectBirthdate);
|
||||||
const rightUser = useSelector(selectors.selectRightUser);
|
const rightUser = useSelector(selectors.selectRightUser);
|
||||||
const categoryId = useSelector(selectors.selectCategoryId);
|
const categoryId = useSelector(selectors.selectCategoryId);
|
||||||
const [text, setText] = useState("Loading...");
|
const [text, setText] = useState("Loading...");
|
||||||
@ -22,8 +23,8 @@ function CompatResultPage(): JSX.Element {
|
|||||||
: `${rightUser.birthDate.year}-${rightUser.birthDate.month}-${rightUser.birthDate.day}`;
|
: `${rightUser.birthDate.year}-${rightUser.birthDate.month}-${rightUser.birthDate.day}`;
|
||||||
const data: AICompats.Payload = {
|
const data: AICompats.Payload = {
|
||||||
data: {
|
data: {
|
||||||
left_name: "John",
|
left_name: "I am",
|
||||||
left_bday: "1970-01-01",
|
left_bday: birthdate,
|
||||||
right_name: rightUser.name,
|
right_name: rightUser.name,
|
||||||
right_bday,
|
right_bday,
|
||||||
category_id: categoryId,
|
category_id: categoryId,
|
||||||
@ -55,9 +56,6 @@ function CompatResultPage(): JSX.Element {
|
|||||||
return (
|
return (
|
||||||
<section className={`${styles.page} page`}>
|
<section className={`${styles.page} page`}>
|
||||||
<div className={styles["title-container"]}>
|
<div className={styles["title-container"]}>
|
||||||
<Title variant="h1" className={styles.percent}>
|
|
||||||
{"46%"}
|
|
||||||
</Title>
|
|
||||||
<Title variant="h2">{t("you_and", { user: rightUser.name })}</Title>
|
<Title variant="h2">{t("you_and", { user: rightUser.name })}</Title>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles["result-container"]}>
|
<div className={styles["result-container"]}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user