fix: remove percents and fix a date and a name

This commit is contained in:
gofnnp 2023-09-12 02:51:59 +04:00
parent 4ef1093119
commit be8cc03f7f

View File

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