Changing details button color when clicked

This commit is contained in:
bourquecharles
2021-05-17 21:25:33 -04:00
parent b2630cd50e
commit 6b15b7e696
3 changed files with 5 additions and 4 deletions

View File

@@ -141,9 +141,10 @@ const DeviceCommands = () => {
<td className="py-2">
<CButton
color="primary"
variant="outline"
variant={details.includes(index) ? "" : "outline"}
shape="square"
size="sm"
onClick={() => {
toggleDetails(index);
}}

View File

@@ -158,7 +158,7 @@ const DeviceHealth = () => {
<td className="py-2">
<CButton
color="primary"
variant="outline"
variant={details.includes(index) ? "" : "outline"}
shape="square"
size="sm"
onClick={() => {

View File

@@ -116,7 +116,7 @@ const DeviceLogs = () => {
/>
</CCol>
<CCol>
Top:
To:
<DatePicker
selected={end === '' ? new Date() : new Date(end)}
value={end === '' ? new Date() : new Date(end)}
@@ -141,7 +141,7 @@ const DeviceLogs = () => {
<td className="py-2">
<CButton
color="primary"
variant="outline"
variant={details.includes(index) ? "" : "outline"}
shape="square"
size="sm"
onClick={() => {