mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
show profile expire date
This commit is contained in:
parent
78fb7294b5
commit
b5dab7ffb6
@ -9,6 +9,7 @@ import {
|
|||||||
} from '@nextui-org/react'
|
} from '@nextui-org/react'
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import SettingItem from '../base/base-setting-item'
|
import SettingItem from '../base/base-setting-item'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
interface Props {
|
interface Props {
|
||||||
item: IProfileItem
|
item: IProfileItem
|
||||||
updateProfileItem: (item: IProfileItem) => Promise<void>
|
updateProfileItem: (item: IProfileItem) => Promise<void>
|
||||||
@ -28,6 +29,13 @@ const EditInfoModal: React.FC<Props> = (props) => {
|
|||||||
<ModalContent>
|
<ModalContent>
|
||||||
<ModalHeader className="flex">编辑信息</ModalHeader>
|
<ModalHeader className="flex">编辑信息</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
|
{values.type === 'remote' && item.extra?.expire && (
|
||||||
|
<SettingItem title="订阅到期时间">
|
||||||
|
<div className="select-none h-[32px] leading-[32px]">
|
||||||
|
{dayjs.unix(item.extra.expire).format('YYYY-MM-DD')}
|
||||||
|
</div>
|
||||||
|
</SettingItem>
|
||||||
|
)}
|
||||||
<SettingItem title="名称">
|
<SettingItem title="名称">
|
||||||
<Input
|
<Input
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user