Skip to content

Commit

Permalink
feat(version): release 0.22.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Dec 13, 2023
1 parent 586e71f commit f8b5298
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="https://img.shields.io/badge/nodejs-18.18.2-dgreen" alt="node">
</a>
<a href="https://github.com/robolaunch/ui/releases">
<img src="https://img.shields.io/badge/release-v0.22.1-red" alt="release">
<img src="https://img.shields.io/badge/release-v0.22.2-red" alt="release">
</a>
<a href="#">
<img src="https://img.shields.io/badge/language-typescript-blue" alt="language">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.22.1",
"version": "0.22.2",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
27 changes: 15 additions & 12 deletions src/components/Connections/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ import StateCell from "../TableInformationCells/StateCell";
import { useKeycloak } from "@react-keycloak/web";
import useRobot from "../../hooks/useRobot";
import { ReactElement } from "react";
import { envApplication } from "../../helpers/envProvider";

export default function Connections(): ReactElement {
const { responseRobot, isSettedCookie } = useRobot();
const { keycloak } = useKeycloak();

return (
<div className="flex gap-4">
<div className="flex gap-1" id="ros">
<ConnectionLabel label="ROS" />
<StateCell
state={
isSettedCookie === undefined
? "Waiting"
: isSettedCookie
? "Connected"
: "Warning"
}
/>
</div>
{!envApplication && (
<div className="flex gap-1" id="ros">
<ConnectionLabel label="ROS" />
<StateCell
state={
isSettedCookie === undefined
? "Waiting"
: isSettedCookie
? "Connected"
: "Warning"
}
/>
</div>
)}
<div className="flex gap-1" id="ide">
<ConnectionLabel label="IDE" url={responseRobot?.ideIngressEndpoint} />
<StateCell
Expand Down

0 comments on commit f8b5298

Please sign in to comment.