Skip to content

Commit 8c72bad

Browse files
authored
fix: format publishing tooltip properly (#4985)
<img width="337" alt="Screenshot 2025-03-12 at 11 29 27" src="https://github.com/user-attachments/assets/ed8bbea2-ae1c-4678-ad7a-d5e99ce9f368" />
1 parent 81c5d6e commit 8c72bad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/builder/app/builder/features/topbar/domains.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export const getPublishStatusAndText = ({
8080

8181
const statusText = (
8282
<>
83-
{textStart}
84-
<RelativeTime time={new Date(createdAt)} />
83+
{textStart} <RelativeTime time={new Date(createdAt)} />
8584
</>
8685
);
8786

apps/builder/app/builder/features/topbar/publish.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ const ChangeProjectDomain = ({
127127
}
128128
suffix={
129129
<Grid flow="column" align="center">
130-
<Tooltip content={error !== undefined ? error : statusText}>
130+
<Tooltip
131+
content={error !== undefined ? error : <Text>{statusText}</Text>}
132+
>
131133
<Flex
132134
align="center"
133135
justify="center"

0 commit comments

Comments
 (0)