Fakultas Ilmu Komputer UI

Commit 35293d1c authored by Sean Zeliq Urian's avatar Sean Zeliq Urian
Browse files

[RED] Move Log Aktivitas to seperate page

parent 3310736c
Pipeline #78746 passed with stages
in 4 minutes and 54 seconds
......@@ -25,6 +25,10 @@ const navigators = [
name: 'Manajemen Akun',
to: '/account-management',
},
{
name: 'Log Aktivitas',
to: '/activity-log',
},
];
const Layout = (props: LayoutProps) => {
......
......@@ -6,6 +6,7 @@ import { Home, AccountManagement, Login, CaseRecapitulation, PositiveCaseInput }
import { LocalStorage } from 'services';
import { DEFAULT_SECRET_KEY } from 'constant';
import Layout from './components/Layout';
import ActivityLog from 'scenes/ActivityLog/components/ActivityLog';
export default function Routes() {
const { user, setUser, setToken, token, services, alert } = useContext(
......@@ -78,6 +79,11 @@ export default function Routes() {
path="/positive-case-input"
component={PositiveCaseInput}
/>
<Route
exact
path="/activity-log"
component={ActivityLog}
/>
</Layout>
</>
) : (
......
import React from 'react';
import { Box } from 'components';
import ActivityLog from './components/ActivityLog';
function Home() {
return (
<Box width="100%" axis={Box.Axis.Vertical}>
<ActivityLog />
</Box>
);
}
export default Home;
\ No newline at end of file
......@@ -5,7 +5,6 @@ import { Box, Text, Content, Gap, CategoryButton, Button } from 'components';
import { AppContext } from 'contexts';
import { Exportables, StatisticType } from 'contexts/AppContext/types';
import Statistic from './components/Statistic';
import ActivityLog from './components/ActivityLog';
const DEFAULT_THEME = {
colors: {
......@@ -218,8 +217,6 @@ function Home() {
</Box>
</Box>
</Content>
<Gap gap={32} axis={Gap.Axis.Vertical} />
<ActivityLog />
</Box>
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment