@@ -30,8 +30,8 @@ import {
3030 DropdownItem ,
3131 DropdownSeparator ,
3232 KebabToggle ,
33- Select ,
34- SelectOption ,
33+ // Select,
34+ // SelectOption,
3535 Title ,
3636 TreeView ,
3737 TreeViewDataItem ,
@@ -40,8 +40,8 @@ import {
4040import ProfileSelect from "./ProfileSelect"
4141// import DashboardSelect from "./DashboardSelect"
4242import ProfileWatcher from "../tray/watchers/profile/list"
43- import ProfileStatusWatcher from "../tray/watchers/profile/status"
44- import UpdateFunction from "../tray/update"
43+ // import ProfileStatusWatcher from "../tray/watchers/profile/status"
44+ // import UpdateFunction from "../tray/update"
4545import { handleNew , handleDelete , handleReset } from "../controller/profile/actions"
4646
4747import "../../web/scss/components/ProfileExplorer/_index.scss"
@@ -60,7 +60,7 @@ type Diff = {
6060
6161type State = Partial < Diff > & {
6262 watcher : ProfileWatcher
63- statusWatcher : ProfileStatusWatcher
63+ // statusWatcher: ProfileStatusWatcher
6464 selectedProfile ?: string
6565 profiles ?: Profile
6666 catastrophicError ?: unknown
@@ -84,11 +84,11 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
8484 this . init ( )
8585 }
8686
87- private readonly statusWatcherUpdateFn : UpdateFunction = ( ) => {
87+ /* private readonly statusWatcherUpdateFn: UpdateFunction = () => {
8888 this.setState((curState) => ({
8989 updateCount: (curState?.updateCount || 0) + 1,
9090 }))
91- }
91+ } */
9292
9393 /** If given `null`, then we will attempt to use the lastUsed profile */
9494 private readonly _handleProfileSelection = ( selectedProfile : string | null ) => {
@@ -212,8 +212,8 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
212212 public componentDidUpdate ( prevProps : Props , prevState : State ) {
213213 if ( prevState ?. selectedProfile !== this . state ?. selectedProfile ) {
214214 if ( ! this . state ?. selectedProfile ) return
215- const statusWatcher = new ProfileStatusWatcher ( this . state . selectedProfile , this . statusWatcherUpdateFn )
216- this . setState ( { statusWatcher } )
215+ // const statusWatcher = new ProfileStatusWatcher(this.state.selectedProfile, this.statusWatcherUpdateFn)
216+ // this.setState({ statusWatcher })
217217 }
218218 }
219219
@@ -224,15 +224,15 @@ export default class ProfileExplorer extends React.PureComponent<Props, State> {
224224 return < Loading />
225225 } else {
226226 return (
227+ // profileReadiness={this.state.statusWatcher?.readiness}
228+ // profileStatus={this.state.statusWatcher}
227229 < div className = "codeflare--profile-explorer flex-fill" >
228230 < ProfileCard
229231 profile = { this . state . selectedProfile }
230232 profiles = { this . state . profiles }
231233 profilesDiff = { this . state . profilesDiff }
232234 onSelectProfile = { this . _handleProfileSelection }
233235 onSelectGuidebook = { this . props . onSelectGuidebook }
234- profileReadiness = { this . state . statusWatcher ?. readiness }
235- profileStatus = { this . state . statusWatcher }
236236 />
237237 </ div >
238238 )
@@ -246,8 +246,8 @@ type ProfileCardProps = Partial<Diff> &
246246 profiles : Profile
247247 onSelectProfile : ( profile : string | null ) => void
248248
249- profileReadiness : string
250- profileStatus : ProfileStatusWatcher
249+ // profileReadiness: string
250+ // profileStatus: ProfileStatusWatcher
251251 }
252252
253253type ProfileCardState = {
@@ -316,7 +316,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
316316 )
317317 }
318318
319- private actionsStatus ( ) {
319+ /* private actionsStatus() {
320320 const StatusTitle = ({ readiness }: { readiness: string | undefined }) => (
321321 <React.Fragment>
322322 <span>Status</span>
@@ -339,7 +339,7 @@ class ProfileCard extends React.PureComponent<ProfileCardProps, ProfileCardState
339339 <SelectOption isPlaceholder>{this.props.profileStatus?.workers.label}</SelectOption>
340340 </Select>
341341 )
342- }
342+ } */
343343
344344 private readonly groups : Record < string , Group > = {
345345 Application : {
0 commit comments