mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-25 05:01:50 +00:00
Replaced usages of Responsive with @artsy/fresnel
Responsive has been removed in newest versions of semantic-ui-react
This commit is contained in:
11
src/util/media.ts
Normal file
11
src/util/media.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {createMedia} from '@artsy/fresnel';
|
||||
|
||||
/** Defines the breakpoints at which to show different UI variants. */
|
||||
const AppMedia = createMedia({
|
||||
breakpoints: {
|
||||
small: 320,
|
||||
large: 768,
|
||||
},
|
||||
});
|
||||
export const mediaStyles = AppMedia.createMediaStyle();
|
||||
export const {Media, MediaContextProvider} = AppMedia;
|
||||
Reference in New Issue
Block a user