* style: add spacing between footer and body content * fix: TNL-8567 prevent card selection when click on show features * style: TNL-8569 update page & resources margin for mobile view * fix: TNL-8571 correct error state for blockout date field * style: TNL-8569 set page&resources margins in mobile view * style: TNL-8573 feature list should intersect with column * style: TNL-8568 update font size and color for feature table * fix: move formInvalid logic to legacy form and make it centralize
15 lines
379 B
JavaScript
15 lines
379 B
JavaScript
import { useMediaQuery } from 'react-responsive';
|
|
|
|
export const executeThunk = async (thunk, dispatch, getState) => {
|
|
await thunk(dispatch, getState);
|
|
await new Promise(setImmediate);
|
|
};
|
|
|
|
export function useIsMobile() {
|
|
return useMediaQuery({ query: '(max-width: 767.98px)' });
|
|
}
|
|
|
|
export function useIsDesktop() {
|
|
return useMediaQuery({ query: '(min-width: 992px)' });
|
|
}
|