Skip to content

Commit

Permalink
Organize files
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihkabakk committed May 12, 2022
1 parent b126563 commit 3050711
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 84 deletions.
38 changes: 0 additions & 38 deletions client-app/src/App.css

This file was deleted.

30 changes: 0 additions & 30 deletions client-app/src/App.tsx

This file was deleted.

27 changes: 27 additions & 0 deletions client-app/src/app/layout/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React, { useEffect, useState } from 'react';
import axios from 'axios';
import { Container } from 'semantic-ui-react';
import { Activity } from '../models/activity';
import NavBar from './NavBar';
import ActivityDashboard from '../../features/activities/dashboard/ActivityDashboard';

function App() {
const [activities, setActivities] = useState<Activity[]>([]);

useEffect(() => {
axios.get<Activity[]>('https://localhost:5000/api/activities').then(response => {
setActivities(response.data);
})
}, [])

return (
<>
<NavBar />
<Container style={{ marginTop: '7em' }}>
<ActivityDashboard activities={activities} />
</Container>
</>
);
}

export default App;
7 changes: 7 additions & 0 deletions client-app/src/app/layout/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body {
background-color: #eaeaea !important;
}

.ui.inverted.top.fixed.menu {
background-image: linear-gradient(135deg, rgb(24, 42, 115) 0%, rgb(33, 138, 174) 69%, rgb(32, 167, 172) 82%) !important;
}
13 changes: 0 additions & 13 deletions client-app/src/index.css

This file was deleted.

4 changes: 2 additions & 2 deletions client-app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import 'semantic-ui-css/semantic.min.css';
import './index.css';
import App from './App';
import './app/layout/styles.css';
import App from './app/layout/App';
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
Expand Down
1 change: 0 additions & 1 deletion client-app/src/logo.svg

This file was deleted.

0 comments on commit 3050711

Please sign in to comment.