Skip to content

Commit 121005c

Browse files
committed
Move css into a style
1 parent b711018 commit 121005c

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

site/src/pages/WorkspacePage/WorkspaceNotifications.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -226,17 +226,7 @@ export const WorkspaceNotifications: FC<WorkspaceNotificationsProps> = (
226226
);
227227

228228
return (
229-
<div
230-
css={{
231-
display: "flex",
232-
alignItems: "center",
233-
gap: 12,
234-
position: "fixed",
235-
bottom: 48,
236-
right: 48,
237-
zIndex: 10,
238-
}}
239-
>
229+
<div css={styles.notifications}>
240230
{infoNotifications.length > 0 && (
241231
<NotificationPill
242232
notifications={infoNotifications}
@@ -269,7 +259,7 @@ const NotificationPill: FC<NotificationPillProps> = (props) => {
269259
return (
270260
<Popover mode="hover">
271261
<PopoverTrigger>
272-
<div css={[styles.pillContainer]}>
262+
<div css={styles.pillContainer}>
273263
<Pill type={type} icon={icon}>
274264
{notifications.length}
275265
</Pill>
@@ -336,6 +326,15 @@ const NotificationActionButton: FC<ButtonProps> = (props) => {
336326
};
337327

338328
const styles = {
329+
notifications: {
330+
display: "flex",
331+
alignItems: "center",
332+
gap: 12,
333+
position: "fixed",
334+
bottom: 48,
335+
right: 48,
336+
zIndex: 10,
337+
},
339338
// Adds some spacing from the popover content
340339
pillContainer: {
341340
paddingTop: 8,

0 commit comments

Comments
 (0)