Fix useState hook placement in SystemVersionComponent.js

master
Tudor Stanciu 2024-03-31 23:24:05 +03:00
parent 56d80a9dd1
commit 8f4c0bb2fa
1 changed files with 1 additions and 1 deletions

View File

@ -29,10 +29,10 @@ const getStyles = theme => ({
});
const SystemVersionComponent = ({ data }) => {
const [listClass, setListClass] = useState(styles.horizontally);
const { t } = useTranslation();
const theme = useTheme();
const styles = getStyles(theme);
const [listClass, setListClass] = useState(styles.horizontally);
useEffect(() => {
const mediaQuery = window.matchMedia("(max-width: 800px)");