Skip to content

Commit b5dab7f

Browse files
author
pompurin404
committed
show profile expire date
1 parent 78fb729 commit b5dab7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/renderer/src/components/profiles/edit-info-modal.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from '@nextui-org/react'
1010
import React, { useState } from 'react'
1111
import SettingItem from '../base/base-setting-item'
12+
import dayjs from 'dayjs'
1213
interface Props {
1314
item: IProfileItem
1415
updateProfileItem: (item: IProfileItem) => Promise<void>
@@ -28,6 +29,13 @@ const EditInfoModal: React.FC<Props> = (props) => {
2829
<ModalContent>
2930
<ModalHeader className="flex">编辑信息</ModalHeader>
3031
<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+
)}
3139
<SettingItem title="名称">
3240
<Input
3341
size="sm"

0 commit comments

Comments
 (0)