@@ -3,17 +3,16 @@ import BlockIcon from "@material-ui/icons/Block"
3
3
import CloudQueueIcon from "@material-ui/icons/CloudQueue"
4
4
import CropSquareIcon from "@material-ui/icons/CropSquare"
5
5
import PlayCircleOutlineIcon from "@material-ui/icons/PlayCircleOutline"
6
- import ReplayIcon from "@material-ui/icons/Replay"
7
6
import { LoadingButton } from "components/LoadingButton/LoadingButton"
8
- import { FC , PropsWithChildren } from "react"
7
+ import { FC } from "react"
9
8
import { useTranslation } from "react-i18next"
10
9
import { makeStyles } from "@material-ui/core/styles"
11
10
12
11
interface WorkspaceAction {
13
12
handleAction : ( ) => void
14
13
}
15
14
16
- export const UpdateButton : FC < PropsWithChildren < WorkspaceAction > > = ( {
15
+ export const UpdateButton : FC < React . PropsWithChildren < WorkspaceAction > > = ( {
17
16
handleAction,
18
17
} ) => {
19
18
const { t } = useTranslation ( "workspacePage" )
@@ -31,7 +30,7 @@ export const UpdateButton: FC<PropsWithChildren<WorkspaceAction>> = ({
31
30
)
32
31
}
33
32
34
- export const StartButton : FC < PropsWithChildren < WorkspaceAction > > = ( {
33
+ export const StartButton : FC < React . PropsWithChildren < WorkspaceAction > > = ( {
35
34
handleAction,
36
35
} ) => {
37
36
const { t } = useTranslation ( "workspacePage" )
@@ -49,7 +48,7 @@ export const StartButton: FC<PropsWithChildren<WorkspaceAction>> = ({
49
48
)
50
49
}
51
50
52
- export const StopButton : FC < PropsWithChildren < WorkspaceAction > > = ( {
51
+ export const StopButton : FC < React . PropsWithChildren < WorkspaceAction > > = ( {
53
52
handleAction,
54
53
} ) => {
55
54
const { t } = useTranslation ( "workspacePage" )
@@ -67,25 +66,7 @@ export const StopButton: FC<PropsWithChildren<WorkspaceAction>> = ({
67
66
)
68
67
}
69
68
70
- export const RestartButton : FC < PropsWithChildren < WorkspaceAction > > = ( {
71
- handleAction,
72
- } ) => {
73
- const { t } = useTranslation ( "workspacePage" )
74
- const styles = useStyles ( )
75
-
76
- return (
77
- < Button
78
- variant = "outlined"
79
- startIcon = { < ReplayIcon /> }
80
- onClick = { handleAction }
81
- className = { styles . fixedWidth }
82
- >
83
- { t ( "actionButton.restart" ) }
84
- </ Button >
85
- )
86
- }
87
-
88
- export const CancelButton : FC < PropsWithChildren < WorkspaceAction > > = ( {
69
+ export const CancelButton : FC < React . PropsWithChildren < WorkspaceAction > > = ( {
89
70
handleAction,
90
71
} ) => {
91
72
return (
@@ -99,7 +80,7 @@ interface DisabledProps {
99
80
label : string
100
81
}
101
82
102
- export const DisabledButton : FC < PropsWithChildren < DisabledProps > > = ( {
83
+ export const DisabledButton : FC < React . PropsWithChildren < DisabledProps > > = ( {
103
84
label,
104
85
} ) => {
105
86
return (
@@ -113,7 +94,7 @@ interface LoadingProps {
113
94
label : string
114
95
}
115
96
116
- export const ActionLoadingButton : FC < PropsWithChildren < LoadingProps > > = ( {
97
+ export const ActionLoadingButton : FC < React . PropsWithChildren < LoadingProps > > = ( {
117
98
label,
118
99
} ) => {
119
100
const styles = useStyles ( )
0 commit comments