diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx
index 9e8a5537..e1424da1 100755
--- a/packages/app/src/App.jsx
+++ b/packages/app/src/App.jsx
@@ -59,7 +59,7 @@ import { Translation } from "react-i18next"
import { Session, User } from "models"
import config from "config"
-import { NotFound, RenderError, Crash, Settings, Navigation, Login, UserRegister, Creator, Searcher } from "components"
+import { NotFound, RenderError, Crash, Settings, Navigation, Login, UserRegister, Creator, Searcher, NotificationsCenter } from "components"
import { DOMWindow } from "components/RenderWindow"
import loadable from "@loadable/component"
@@ -124,10 +124,13 @@ class App extends React.Component {
}
},
"app.openSearcher": () => {
- return App.publicMethods.openSearcher()
+ App.publicMethods.openSearcher()
},
- "app.openCreator": (...args) => {
- return App.publicMethods.openCreator(...args)
+ "app.openCreator": () => {
+ App.publicMethods.openCreator()
+ },
+ "app.openNotifications": () => {
+ App.publicMethods.openNotifications()
},
"app.createLogin": async () => {
app.DrawerController.open("login", Login, {
@@ -271,6 +274,15 @@ class App extends React.Component {
}
static publicMethods = {
+ openNotifications: () => {
+ window.app.SidedrawerController.open("notifications", NotificationsCenter, {
+ props: {
+ width: "fit-content",
+ },
+ allowMultiples: false,
+ escClosable: true,
+ })
+ },
openSearcher: (options) => {
window.app.ModalController.open((props) => )
},
diff --git a/packages/app/src/components/Layout/sidebar/index.jsx b/packages/app/src/components/Layout/sidebar/index.jsx
index 6d023e04..98af04ef 100755
--- a/packages/app/src/components/Layout/sidebar/index.jsx
+++ b/packages/app/src/components/Layout/sidebar/index.jsx
@@ -359,7 +359,7 @@ export default class Sidebar extends React.Component {
{(t) => t("Create")}
-
}>
+ } overrideEvent="app.openNotifications">
{t => t("Notifications")}
diff --git a/packages/app/src/components/NotificationsCenter/index.jsx b/packages/app/src/components/NotificationsCenter/index.jsx
new file mode 100644
index 00000000..dabb4427
--- /dev/null
+++ b/packages/app/src/components/NotificationsCenter/index.jsx
@@ -0,0 +1,15 @@
+import React from "react"
+
+import "./index.less"
+
+export default (props) => {
+ return
+
+
Notifications
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/packages/app/src/components/NotificationsCenter/index.less b/packages/app/src/components/NotificationsCenter/index.less
new file mode 100644
index 00000000..e86e84e6
--- /dev/null
+++ b/packages/app/src/components/NotificationsCenter/index.less
@@ -0,0 +1,16 @@
+.notificationsCenter{
+ display: flex;
+ flex-direction: column;
+
+ .header {
+ display: flex;
+ flex-direction: column;
+
+ margin-bottom: 20px;
+
+ h2 {
+ font-size: 1.5rem;
+ font-weight: 600;
+ }
+ }
+}
\ No newline at end of file
diff --git a/packages/app/src/components/index.js b/packages/app/src/components/index.js
index 374f88c8..ae27f27f 100755
--- a/packages/app/src/components/index.js
+++ b/packages/app/src/components/index.js
@@ -33,6 +33,8 @@ export { default as UserPreview } from "./UserPreview"
export { default as FeaturedEventAnnouncement } from "./FeaturedEventAnnouncement"
export { default as FeaturedEventsAnnouncements } from "./FeaturedEventsAnnouncements"
+export { default as NotificationsCenter } from "./NotificationsCenter"
+
// CREATOR
export { default as Creator } from "./Creator"