feat: 邀请码管理标记已过去邀请码

pull/81/head
moonrailgun 3 years ago
parent 9a8e258ec5
commit 91b14874a5

@ -235,6 +235,7 @@
"kf3fa6059": "You can use the complete <1>nickname#identifier</1> to add friends",
"kf4567a1": "Copy the invitation link",
"kf48ae58": "Group information not found",
"kf5543e44": "Expired",
"kf5861d84": "No friend requests have been sent yet",
"kf5d66247": "Panel Name",
"kf6d7f23d": "Connecting to chat server...",

@ -235,6 +235,7 @@
"kf3fa6059": "您可以使用完整的 <1>用户昵称#标识</1> 来添加好友",
"kf4567a1": "复制邀请链接",
"kf48ae58": "找不到群组信息",
"kf5543e44": "已过期",
"kf5861d84": "暂无已发送的好友请求",
"kf5d66247": "面板名",
"kf6d7f23d": "正在连接到聊天服务器...",

@ -78,6 +78,10 @@ export const GroupInvite: React.FC<{
return t('永不过期');
}
if (new Date(date).valueOf() < Date.now()) {
return t('已过期');
}
return (
<Tooltip title={formatFullTime(date)}>
{datetimeFromNow(date)}

Loading…
Cancel
Save