Commit b5dab7f pompurin404
committed
1 parent 78fb729 commit b5dab7f Copy full SHA for b5dab7f
File tree 1 file changed +8
-0
lines changed
src/renderer/src/components/profiles
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
} from '@nextui-org/react'
10
10
import React , { useState } from 'react'
11
11
import SettingItem from '../base/base-setting-item'
12
+ import dayjs from 'dayjs'
12
13
interface Props {
13
14
item : IProfileItem
14
15
updateProfileItem : ( item : IProfileItem ) => Promise < void >
@@ -28,6 +29,13 @@ const EditInfoModal: React.FC<Props> = (props) => {
28
29
< ModalContent >
29
30
< ModalHeader className = "flex" > 编辑信息</ ModalHeader >
30
31
< ModalBody >
32
+ { values . type === 'remote' && item . extra ?. expire && (
33
+ < SettingItem title = "订阅到期时间" >
34
+ < div className = "select-none h-[32px] leading-[32px]" >
35
+ { dayjs . unix ( item . extra . expire ) . format ( 'YYYY-MM-DD' ) }
36
+ </ div >
37
+ </ SettingItem >
38
+ ) }
31
39
< SettingItem title = "名称" >
32
40
< Input
33
41
size = "sm"
You can’t perform that action at this time.
0 commit comments