diff --git a/src/App.tsx b/src/App.tsx
index 83fedd3..7d2d7e1 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -4,7 +4,7 @@ import { Routes, Route, Navigate, Outlet } from 'react-router-dom';
import { Toaster } from 'react-hot-toast';
import { useAuth } from 'src/services/auth';
-import { Dashboard, Users, Login, Apps } from './modules';
+import { Dashboard, Users, Login, Apps, AppSingle } from './modules';
import { Layout } from './components';
import { LoginCallback } from './modules/login/LoginCallback';
@@ -46,6 +46,7 @@ function App() {
} />
}>
+ } />
} />
} />
diff --git a/src/modules/apps/AppSingle.tsx b/src/modules/apps/AppSingle.tsx
index fc994e3..a3602e9 100644
--- a/src/modules/apps/AppSingle.tsx
+++ b/src/modules/apps/AppSingle.tsx
@@ -1,8 +1,9 @@
import React from 'react';
-import { ChevronRightIcon } from '@heroicons/react/solid';
+import { useParams } from 'react-router-dom';
+import _ from 'lodash';
import { XCircleIcon } from '@heroicons/react/outline';
-import { Tabs, Banner } from 'src/components';
-import { Link } from 'react-router-dom';
+import { Tabs } from 'src/components';
+import { appAccessList } from 'src/components/UserModal/consts';
import { AdvancedTab, GeneralTab } from './components';
const pages = [
@@ -16,81 +17,46 @@ const tabs = [
];
export const AppSingle: React.FC = () => {
+ const params = useParams();
+ const appSlug = params.slug;
+
+ const appInfo = _.find(appAccessList, { name: appSlug });
+
return (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Nextcloud
-
Installed on August 25, 2020
-
-
-
-
-
-
-
-
+
+
+
+
+
+
{appInfo?.label}
+
Installed on August 25, 2020
+
+
+
-
+
+
- >
+
);
};
diff --git a/src/modules/apps/components/GeneralTab/GeneralTab.tsx b/src/modules/apps/components/GeneralTab/GeneralTab.tsx
index 1e5239b..bdc9317 100644
--- a/src/modules/apps/components/GeneralTab/GeneralTab.tsx
+++ b/src/modules/apps/components/GeneralTab/GeneralTab.tsx
@@ -1,159 +1,40 @@
import React, { useState } from 'react';
-import { RadioGroup } from '@headlessui/react';
+import { Switch } from '@headlessui/react';
function classNames(...classes: any) {
return classes.filter(Boolean).join(' ');
}
-const settings = [
- { name: 'Public access', description: 'This project would be available to anyone who has the link' },
- { name: 'Private to Project Members', description: 'Only members of this project would be able to access' },
- { name: 'Private to you', description: 'You are the only one able to access this project' },
-];
-
export const GeneralTab = () => {
- const [selected, setSelected] = useState(settings[0]);
+ const [enabled, setEnabled] = useState(false);
return (