Add timestamp to multi segment vote box

This commit is contained in:
Ajay
2023-12-22 12:58:40 -05:00
parent 9d0e42de76
commit 67c2a5bae7

View File

@@ -14,6 +14,7 @@ import PencilSvg from "../svg-icons/pencil_svg";
import { downvoteButtonColor, SkipNoticeAction } from "../utils/noticeUtils";
import { generateUserID } from "../../maze-utils/src/setup";
import { keybindToString } from "../../maze-utils/src/config";
import { getFormattedTime } from "../../maze-utils/src/formating";
enum SkipButtonState {
Undo, // Unskip
@@ -388,7 +389,8 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
color: this.getSubmissionChooserColor(i)}}
onClick={() => this.performAction(i)}
key={"submission" + i + this.segments[i].category + this.idSuffix}>
{(i + 1) + ". " + chrome.i18n.getMessage("category_" + this.segments[i].category)}
{`${(i + 1)}. ${chrome.i18n.getMessage("category_" +
this.segments[i].category)} (${getFormattedTime(this.segments[i].segment[0])})`}
</button>
);
}