From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/workflow/header/editing-title.tsx | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/app/components/workflow/header/editing-title.tsx b/app/components/workflow/header/editing-title.tsx
index 2444cf8..9148420 100644
--- a/app/components/workflow/header/editing-title.tsx
+++ b/app/components/workflow/header/editing-title.tsx
@@ -1,19 +1,19 @@
import { memo } from 'react'
import { useTranslation } from 'react-i18next'
-import { useFormatTimeFromNow } from '../hooks'
+import { useWorkflow } from '../hooks'
import { useStore } from '@/app/components/workflow/store'
import useTimestamp from '@/hooks/use-timestamp'
const EditingTitle = () => {
const { t } = useTranslation()
const { formatTime } = useTimestamp()
- const { formatTimeFromNow } = useFormatTimeFromNow()
+ const { formatTimeFromNow } = useWorkflow()
const draftUpdatedAt = useStore(state => state.draftUpdatedAt)
const publishedAt = useStore(state => state.publishedAt)
const isSyncingWorkflowDraft = useStore(s => s.isSyncingWorkflowDraft)
return (
- <div className='system-xs-regular flex h-[18px] items-center text-text-tertiary'>
+ <div className='flex items-center h-[18px] system-xs-regular text-text-tertiary'>
{
!!draftUpdatedAt && (
<>
@@ -21,7 +21,7 @@
</>
)
}
- <span className='mx-1 flex items-center'>路</span>
+ <span className='flex items-center mx-1'>路</span>
{
publishedAt
? `${t('workflow.common.published')} ${formatTimeFromNow(publishedAt)}`
@@ -30,7 +30,7 @@
{
isSyncingWorkflowDraft && (
<>
- <span className='mx-1 flex items-center'>路</span>
+ <span className='flex items-center mx-1'>路</span>
{t('workflow.common.syncingData')}
</>
)
--
Gitblit v1.8.0