Skip to content

Commit

Permalink
docs: fix import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Nov 13, 2024
1 parent a60ad45 commit 03a062b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/guide/typescript/cli-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ In order for Astal to know about your windows, you have to register them.
You can do this by specifying a **unique** `name` and calling `App.add_window`

```tsx {4}
import { App } from "astal"
import { App } from "astal/gtk3"

function Bar() {
return <window name="Bar" setup={self => App.add_window(self)}>
Expand All @@ -104,7 +104,7 @@ function Bar() {
You can also invoke `App.add_window` by simply passing the `App` to the `application` prop.

```tsx {4}
import { App } from "astal"
import { App } from "astal/gtk3"

function Bar() {
return <window name="Bar" application={App}>
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/typescript/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ the same as the compositor. Instead use the `gdkmonitor` property which expects
a `Gdk.Monitor` object.

```tsx
import { App } from "astal"
import { App } from "astal/gtk3"

function Bar(gdkmonitor) {
return <window gdkmonitor={gdkmonitor} />
Expand Down Expand Up @@ -162,7 +162,7 @@ export default function Bar(gdkmonitor: Gdk.Monitor) {
:::code-group

```ts [app.ts]
import { Gdk, Gtk } from "astal"
import { Gdk, Gtk } from "astal/gtk3"
import Bar from "./Bar"

function main() {
Expand Down

0 comments on commit 03a062b

Please sign in to comment.