File tree 1 file changed +15
-16
lines changed
site/src/pages/WorkspacePage 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,15 @@ type WorkspaceNotificationsProps = {
36
36
latestVersion ?: TemplateVersion ;
37
37
} ;
38
38
39
- export const WorkspaceNotifications : FC < WorkspaceNotificationsProps > = (
40
- props ,
41
- ) => {
42
- const {
43
- workspace,
44
- template,
45
- latestVersion,
46
- permissions,
47
- onRestartWorkspace,
48
- onUpdateWorkspace,
49
- onActivateWorkspace,
50
- } = props ;
39
+ export const WorkspaceNotifications : FC < WorkspaceNotificationsProps > = ( {
40
+ workspace,
41
+ template,
42
+ latestVersion,
43
+ permissions,
44
+ onRestartWorkspace,
45
+ onUpdateWorkspace,
46
+ onActivateWorkspace,
47
+ } ) => {
51
48
const notifications : Notification [ ] = [ ] ;
52
49
53
50
// Outdated
@@ -262,8 +259,7 @@ type NotificationPillProps = {
262
259
icon : ReactNode ;
263
260
} ;
264
261
265
- const NotificationPill : FC < NotificationPillProps > = ( props ) => {
266
- const { notifications, type, icon } = props ;
262
+ const NotificationPill : FC < NotificationPillProps > = ( { notifications, type, icon } ) => {
267
263
const theme = useTheme ( ) ;
268
264
269
265
return (
@@ -296,8 +292,11 @@ const NotificationPill: FC<NotificationPillProps> = (props) => {
296
292
) ;
297
293
} ;
298
294
299
- const NotificationItem : FC < { notification : Notification } > = ( props ) => {
300
- const { notification } = props ;
295
+ interface NotificationItemProps {
296
+ notification : Notification ;
297
+ }
298
+
299
+ const NotificationItem : FC < NotificationItemProps > = ( { notification } ) => {
301
300
const theme = useTheme ( ) ;
302
301
303
302
return (
You can’t perform that action at this time.
0 commit comments