Skip to content

Commit

Permalink
Merge pull request #193 from stephb9959/main
Browse files Browse the repository at this point in the history
[WIFI-13247] Fixed revision select in dark mode
  • Loading branch information
BourqueCharles authored Dec 20, 2023
2 parents 70e7ec4 + 664ef73 commit c5fb6e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wlan-cloud-owprov-ui",
"version": "3.0.0(4)",
"version": "3.0.0(5)",
"description": "",
"main": "index.tsx",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion src/pages/VenuePage/VenueFirmwareUpgradeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
Tabs,
Text,
UnorderedList,
useColorModeValue,
} from '@chakra-ui/react';
import { useTranslation } from 'react-i18next';
import FormattedDate from 'components/FormattedDate';
Expand Down Expand Up @@ -52,9 +53,12 @@ const VenueFirmwareUpgradeModal = ({ isOpen, onClose, venueId }: Props) => {
}
};

const inactiveBg = useColorModeValue('white', 'gray.700');
const activeBg = useColorModeValue('gray.200', 'gray.600');

const listItemStyle = (revision: string) => ({
cursor: 'pointer',
backgroundColor: revision === selectedRevision ? 'gray.200' : 'white',
backgroundColor: revision === selectedRevision ? activeBg : inactiveBg,
});

const displayRevision = (release: { date: number; revision: string }) => (
Expand Down

0 comments on commit c5fb6e3

Please sign in to comment.