fix: view classes

This commit is contained in:
saberzero1 2026-02-26 19:16:02 +01:00
parent e9293bb4bf
commit 360dfca18e
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,11 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro
export default ((component: QuartzComponent) => { export default ((component: QuartzComponent) => {
const Component = component const Component = component
const DesktopOnly: QuartzComponent = (props: QuartzComponentProps) => { const DesktopOnly: QuartzComponent = (props: QuartzComponentProps) => {
return <Component displayClass="desktop-only" {...props} /> return (
<div class="desktop-only">
<Component {...props} />
</div>
)
} }
DesktopOnly.displayName = component.displayName DesktopOnly.displayName = component.displayName

View File

@ -3,7 +3,11 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } fro
export default ((component: QuartzComponent) => { export default ((component: QuartzComponent) => {
const Component = component const Component = component
const MobileOnly: QuartzComponent = (props: QuartzComponentProps) => { const MobileOnly: QuartzComponent = (props: QuartzComponentProps) => {
return <Component displayClass="mobile-only" {...props} /> return (
<div class="mobile-only">
<Component {...props} />
</div>
)
} }
MobileOnly.displayName = component.displayName MobileOnly.displayName = component.displayName