mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector
synced 2025-06-21 19:17:04 +03:00
Fix useState hook placement in SystemVersionComponent.js
This commit is contained in:
parent
56d80a9dd1
commit
8f4c0bb2fa
@ -29,10 +29,10 @@ const getStyles = theme => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const SystemVersionComponent = ({ data }) => {
|
const SystemVersionComponent = ({ data }) => {
|
||||||
const [listClass, setListClass] = useState(styles.horizontally);
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const styles = getStyles(theme);
|
const styles = getStyles(theme);
|
||||||
|
const [listClass, setListClass] = useState(styles.horizontally);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const mediaQuery = window.matchMedia("(max-width: 800px)");
|
const mediaQuery = window.matchMedia("(max-width: 800px)");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user