forked from Archives/Athou_commafeed
replace old client with new client from commafeed-ui repository
This commit is contained in:
11
commafeed-client/src/components/responsive/OnDesktop.tsx
Normal file
11
commafeed-client/src/components/responsive/OnDesktop.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Box, MediaQuery } from "@mantine/core"
|
||||
import { Constants } from "app/constants"
|
||||
import React from "react"
|
||||
|
||||
export function OnDesktop(props: { children: React.ReactNode }) {
|
||||
return (
|
||||
<MediaQuery smallerThan={Constants.layout.mobileBreakpoint} styles={{ display: "none" }}>
|
||||
<Box>{props.children}</Box>
|
||||
</MediaQuery>
|
||||
)
|
||||
}
|
||||
11
commafeed-client/src/components/responsive/OnMobile.tsx
Normal file
11
commafeed-client/src/components/responsive/OnMobile.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Box, MediaQuery } from "@mantine/core"
|
||||
import { Constants } from "app/constants"
|
||||
import React from "react"
|
||||
|
||||
export function OnMobile(props: { children: React.ReactNode }) {
|
||||
return (
|
||||
<MediaQuery largerThan={Constants.layout.mobileBreakpoint} styles={{ display: "none" }}>
|
||||
<Box>{props.children}</Box>
|
||||
</MediaQuery>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user