summaryrefslogtreecommitdiff
path: root/examples/js/simple-bar/widget/Bar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/js/simple-bar/widget/Bar.tsx')
-rw-r--r--examples/js/simple-bar/widget/Bar.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx
index efc065a..8a0126e 100644
--- a/examples/js/simple-bar/widget/Bar.tsx
+++ b/examples/js/simple-bar/widget/Bar.tsx
@@ -133,15 +133,13 @@ function Time({ format = "%H:%M - %A %e." }) {
}
export default function Bar(monitor: Gdk.Monitor) {
- const anchor = Astal.WindowAnchor.TOP
- | Astal.WindowAnchor.LEFT
- | Astal.WindowAnchor.RIGHT
+ const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
return <window
className="Bar"
gdkmonitor={monitor}
exclusivity={Astal.Exclusivity.EXCLUSIVE}
- anchor={anchor}>
+ anchor={TOP | LEFT | RIGHT}>
<centerbox>
<box hexpand halign={Gtk.Align.START}>
<Workspaces />