File tree 1 file changed +6
-10
lines changed
site/src/pages/WorkspacePage 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -288,21 +288,12 @@ const NotificationPill: FC<NotificationPillProps> = (props) => {
288
288
289
289
const NotificationItem : FC < { notification : Notification } > = ( props ) => {
290
290
const { notification } = props ;
291
- const theme = useTheme ( ) ;
292
291
293
292
return (
294
293
< article css = { { padding : 16 } } >
295
294
< h4 css = { { margin : 0 , fontWeight : 500 } } > { notification . title } </ h4 >
296
295
{ notification . detail && (
297
- < p
298
- css = { {
299
- margin : 0 ,
300
- color : theme . palette . text . secondary ,
301
- lineHeight : 1.6 ,
302
- } }
303
- >
304
- { notification . detail }
305
- </ p >
296
+ < p css = { styles . notificationDetail } > { notification . detail } </ p >
306
297
) }
307
298
< div css = { { marginTop : 8 } } > { notification . actions } </ div >
308
299
</ article >
@@ -339,4 +330,9 @@ const styles = {
339
330
pillContainer : {
340
331
paddingTop : 8 ,
341
332
} ,
333
+ notificationDetail : ( theme ) => ( {
334
+ margin : 0 ,
335
+ color : theme . palette . text . secondary ,
336
+ lineHeight : 1.6 ,
337
+ } ) ,
342
338
} satisfies Record < string , Interpolation < Theme > > ;
You can’t perform that action at this time.
0 commit comments