feat: add cloud reset time UI (#56)
* feat: show quota reset time on cloud account card * chore: ignore changelog file in prettier * style: format account card
This commit is contained in:
5 files changed
+98
-19
No files matched your search
@@ -40,11 +40,11 @@ export const AccountCard: React.FC<AccountCardProps> = ({
|
||||
|
||||
const initials = account.name
|
||||
? account.name
|
||||
.split(' ')
|
||||
.map((n) => n[0])
|
||||
.join('')
|
||||
.toUpperCase()
|
||||
.slice(0, 2)
|
||||
.split(' ')
|
||||
.map((n) => n[0])
|
||||
.join('')
|
||||
.toUpperCase()
|
||||
.slice(0, 2)
|
||||
: account.email[0].toUpperCase();
|
||||
|
||||
// 处理鼠标移动,计算 3D 旋转角度
|
||||
|
||||
Reference in new issue
Block a user