Skip to content

Commit 19832ee

Browse files
committed
fix pill usage
1 parent d48c501 commit 19832ee

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

site/src/pages/WorkspacePage/WorkspaceTopbar/WorkspaceTopbar.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,11 @@ export const WorkspaceTopbar = (props: WorkspaceProps) => {
146146
}}
147147
/>
148148
}
149-
text={
150-
<span css={{ color: theme.palette.warning.light }}>
151-
{workspace.latest_build.template_version_name}
152-
</span>
153-
}
154-
/>
149+
>
150+
<span css={{ color: theme.palette.warning.light }}>
151+
{workspace.latest_build.template_version_name}
152+
</span>
153+
</Pill>
155154
</div>
156155
</PopoverTrigger>
157156
<WorkspaceOutdatedTooltipContent
@@ -162,7 +161,7 @@ export const WorkspaceTopbar = (props: WorkspaceProps) => {
162161
/>
163162
</Popover>
164163
) : (
165-
<Pill text={workspace.latest_build.template_version_name} />
164+
<Pill>{workspace.latest_build.template_version_name}</Pill>
166165
)}
167166
</TopbarData>
168167

0 commit comments

Comments
 (0)