diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx
index 005a02ae..161e197c 100644
--- a/packages/app/src/App.jsx
+++ b/packages/app/src/App.jsx
@@ -55,7 +55,7 @@ import { Translation } from "react-i18next"
import { Session, User } from "models"
import config from "config"
-import { NotFound, RenderError, Crash, Settings, Navigation, Login, UserRegister, Creator } from "components"
+import { NotFound, RenderError, Crash, Settings, Navigation, Login, UserRegister, Creator, Searcher } from "components"
import { Icons } from "components/Icons"
import Layout from "./layout"
@@ -114,6 +114,9 @@ class App extends React.Component {
window.electron.ipcRenderer.invoke("app.minimize")
}
},
+ "app.openSearcher": () => {
+ return App.publicMethods.openSearcher()
+ },
"app.openCreator": (...args) => {
return App.publicMethods.openCreator(...args)
},
@@ -256,6 +259,9 @@ class App extends React.Component {
}
static publicMethods = {
+ openSearcher: (options) => {
+ window.app.ModalController.open((props) => )
+ },
openCreator: () => {
window.app.ModalController.open((props) => )
},
@@ -279,6 +285,9 @@ class App extends React.Component {
goToAccount: (username) => {
return window.app.setLocation(`/@${username}`)
},
+ goToPost: (id) => {
+ return window.app.setLocation(`/post/${id}`)
+ },
isAppCapacitor: () => window.navigator.userAgent === "capacitor",
setStatusBarStyleDark: async () => {
if (!window.app.isAppCapacitor()) {