Fix useState hook placement in SystemVersionComponent.js
parent
56d80a9dd1
commit
8f4c0bb2fa
|
@ -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)");
|
||||
|
|
Loading…
Reference in New Issue