Skip to content

Commit

Permalink
fix(mobile-view): add context import
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jul 1, 2024
1 parent 3e134aa commit 587cd29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/components/ui/mobile_only.templ
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package ui

import "context"

templ MobileOnly() {
if IsMobile(ctx) {
<div class={ "contents", "md:hidden" }>
Expand Down

0 comments on commit 587cd29

Please sign in to comment.