mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Revert "Merge pull request #62 from project-error/feature/show-app-name-on-hover"
This reverts commit 5f7875182c.
This commit is contained in:
1 parent
5f7875182c
commit
d6a8c45d52
3 files changed
+23
-40
No files matched your search
@@ -39,16 +39,6 @@ import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
|
||||
import { NotesApp } from '../../../apps/notes/NotesApp';
|
||||
import CameraApp from '../../../apps/camera/components/CameraApp';
|
||||
|
||||
export interface AppConfiguration {
|
||||
id: string;
|
||||
nameLocale: string;
|
||||
icon: JSX.Element;
|
||||
backgroundColor: string;
|
||||
color: string;
|
||||
path: string;
|
||||
Route: () => JSX.Element;
|
||||
}
|
||||
|
||||
const appsState = atom({
|
||||
key: 'apps',
|
||||
default: {
|
||||
@@ -158,7 +148,7 @@ const appsState = atom({
|
||||
|
||||
export const useApps = () => {
|
||||
const [apps, setApps] = useConfig(appsState);
|
||||
const allApps: AppConfiguration[] = [...apps.preinstalled];
|
||||
const allApps = [...apps.preinstalled];
|
||||
|
||||
const getApp = (id) => allApps.find((a) => a.id === id) || null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user