|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import { useCallback, useEffect, useState } from "react";
|
|
|
|
|
import * as utils from "../helpers/utils";
|
|
|
|
|
import userService from "../services/userService";
|
|
|
|
|
import useI18n from "../hooks/useI18n";
|
|
|
|
|
import { locationService } from "../services";
|
|
|
|
|
import { useAppSelector } from "../store";
|
|
|
|
|
import Icon from "./Icon";
|
|
|
|
@ -8,6 +9,7 @@ import MenuBtnsPopup from "./MenuBtnsPopup";
|
|
|
|
|
import "../less/user-banner.less";
|
|
|
|
|
|
|
|
|
|
const UserBanner = () => {
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
const { user, owner } = useAppSelector((state) => state.user);
|
|
|
|
|
const { memos, tags } = useAppSelector((state) => state.memo);
|
|
|
|
|
const [shouldShowPopupBtns, setShouldShowPopupBtns] = useState(false);
|
|
|
|
@ -51,15 +53,15 @@ const UserBanner = () => {
|
|
|
|
|
<div className="amount-text-container">
|
|
|
|
|
<div className="status-text memos-text">
|
|
|
|
|
<span className="amount-text">{memos.length}</span>
|
|
|
|
|
<span className="type-text">MEMO</span>
|
|
|
|
|
<span className="type-text">{t("amount-text.memo")}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="status-text tags-text">
|
|
|
|
|
<span className="amount-text">{tags.length}</span>
|
|
|
|
|
<span className="type-text">TAG</span>
|
|
|
|
|
<span className="type-text">{t("amount-text.tag")}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="status-text duration-text">
|
|
|
|
|
<span className="amount-text">{createdDays}</span>
|
|
|
|
|
<span className="type-text">DAY</span>
|
|
|
|
|
<span className="type-text">{t("amount-text.day")}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|