-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(objects-create-flow): 🎉 update sidebar-content with sub comp…
…onents
- Loading branch information
1 parent
c3209fc
commit 75dfe3f
Showing
30 changed files
with
272 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/components/CloudInstancesListItemDesc/CloudInstancesListItemDesc.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { ReactElement } from "react"; | ||
import StateCell from "../Cells/StateCell"; | ||
|
||
interface ICloudInstancesListItemDesc { | ||
instance: any; | ||
} | ||
|
||
export default function CloudInstancesListItemDesc({ | ||
instance, | ||
}: ICloudInstancesListItemDesc): ReactElement { | ||
return ( | ||
<div className="flex gap-2"> | ||
<div className="flex gap-1.5"> | ||
<span className="font-medium">RS:</span> | ||
<StateCell state={instance?.instanceCloudState} isRobolaunchState /> | ||
</div> | ||
<div className="flex gap-1.5"> | ||
<span className="font-medium">PS:</span> | ||
<StateCell state={instance?.instanceState} /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, { ReactElement } from "react"; | ||
import StateCell from "../Cells/StateCell"; | ||
|
||
interface IFleetsListItemDesc { | ||
fleet: any; | ||
responseFleets: any; | ||
} | ||
|
||
export default function FleetsListItemDesc({ | ||
fleet, | ||
responseFleets, | ||
}: IFleetsListItemDesc): ReactElement { | ||
return ( | ||
<div className="flex gap-2"> | ||
<div className="flex gap-1.5"> | ||
<span className="font-medium">VI:</span> | ||
<StateCell state={fleet?.fleetStatus} /> | ||
</div> | ||
{responseFleets?.filter( | ||
(pFleet: any) => fleet?.name === pFleet?.fleetName | ||
).length > 0 && ( | ||
<div className="flex gap-1.5"> | ||
<span className="font-medium">PI:</span> | ||
<StateCell | ||
state={ | ||
responseFleets?.filter( | ||
(pFleet: any) => fleet?.name === pFleet?.fleetName | ||
)[0]?.fleetStatus | ||
} | ||
/> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.