Add: Simcard, simcardService + Add: nuiEvent, nuiService

This commit is contained in:
J Francisco Rader committed 2020-08-23 17:32:01 -03:00
1 parent ec37fcde46
commit f862100d4b
14 files changed
+101 -5

No files matched your search

@@ -13,6 +13,7 @@ import { useSettings } from "../hooks/useSettings";
import { useApps } from "../../appmarket/hooks/useApps";
import { List } from "../../../ui/components/List";
import { ListItem } from "../../../ui/components/ListItem";
import { useSimcard } from "../../../os/simcard/hooks/useSimcard";
export const SettingItem = ({ options, label, value, onClick }) => {
return (
@@ -30,6 +31,7 @@ export const SettingsApp = () => {
const [config] = useConfig();
const { getApp } = useApps();
const { setSettings, settings } = useSettings();
const simcard = useSimcard();
const wallpapers = config.wallpapers.map(
MapStringOptions(settings.wallpaper, (val) => setSettings("wallpaper", val))
@@ -67,6 +69,10 @@ export const SettingsApp = () => {
options={frames}
onClick={openMenu}
/>
<SettingItem
label="Phone Number"
value={simcard.number}
/>
</List>
</AppContent>
<ContextMenu />