mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(notes/nui): App configuration in useApps
This commit is contained in:
1 parent
aafc7a8e3d
commit
5ff8855a33
1 file changed
+13
-1
@@ -6,6 +6,7 @@ import {
|
|||||||
grey,
|
grey,
|
||||||
green,
|
green,
|
||||||
purple,
|
purple,
|
||||||
|
yellow,
|
||||||
red,
|
red,
|
||||||
amber,
|
amber,
|
||||||
} from "@material-ui/core/colors";
|
} from "@material-ui/core/colors";
|
||||||
@@ -14,7 +15,8 @@ import {
|
|||||||
faAd,
|
faAd,
|
||||||
faPlaneArrival,
|
faPlaneArrival,
|
||||||
faPhoneAlt,
|
faPhoneAlt,
|
||||||
faWonSign
|
faWonSign,
|
||||||
|
faStickyNote
|
||||||
} from "@fortawesome/free-solid-svg-icons";
|
} from "@fortawesome/free-solid-svg-icons";
|
||||||
import { faTwitter } from "@fortawesome/free-brands-svg-icons";
|
import { faTwitter } from "@fortawesome/free-brands-svg-icons";
|
||||||
|
|
||||||
@@ -33,6 +35,7 @@ import { MessagesApp } from "../../../apps/messages/components/MessagesApp";
|
|||||||
import { TwitterApp } from "../../../apps/twitter/components/TwitterApp";
|
import { TwitterApp } from "../../../apps/twitter/components/TwitterApp";
|
||||||
import { ExampleApp } from "../../../apps/example/components/ExampleApp";
|
import { ExampleApp } from "../../../apps/example/components/ExampleApp";
|
||||||
import { SelloutApp } from "../../../apps/sellout/components/SelloutApp";
|
import { SelloutApp } from "../../../apps/sellout/components/SelloutApp";
|
||||||
|
import { NotesApp } from "../../../apps/notes/NotesApp";
|
||||||
|
|
||||||
const appsState = atom({
|
const appsState = atom({
|
||||||
key: "apps",
|
key: "apps",
|
||||||
@@ -110,6 +113,15 @@ const appsState = atom({
|
|||||||
path: "/sellout",
|
path: "/sellout",
|
||||||
Route: () => <Route path="/sellout" component={SelloutApp} />,
|
Route: () => <Route path="/sellout" component={SelloutApp} />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'NOTES',
|
||||||
|
name: 'APPS_NOTES',
|
||||||
|
icon: <FontAwesomeIcon icon={faStickyNote} fixedWidth />,
|
||||||
|
backgroundColor: yellow[800],
|
||||||
|
color: common.white,
|
||||||
|
path: "/notes",
|
||||||
|
Route: () => <Route path="/notes" component={NotesApp}/>
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "EXAMPLE",
|
id: "EXAMPLE",
|
||||||
nameLocale: "APPS_EXAMPLE",
|
nameLocale: "APPS_EXAMPLE",
|
||||||
|
|||||||
Reference in new issue
Block a user