Skip to content

Commit

Permalink
Merge pull request #34 from hariclerry/bugfix/code-merge
Browse files Browse the repository at this point in the history
Bugfix/code merge
  • Loading branch information
hariclerry authored Jul 18, 2024
2 parents 09a386d + 9f74041 commit 07be05b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
11 changes: 9 additions & 2 deletions frontend/src/core/component/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Container, Nav, Navbar, NavDropdown} from 'react-bootstrap';
import { Container, Nav, Navbar, NavDropdown } from 'react-bootstrap';
import getCurrentProfile from '../utils/current-profile';
import {Roles} from '../constants';
import { Roles } from '../constants';

export default function NavBar() {
const profile = getCurrentProfile();
Expand All @@ -26,6 +26,13 @@ export default function NavBar() {
<Nav.Link href="/resources" className="text-white">
Resources
</Nav.Link>
<Nav.Link href="/discussions" className="text-white">
Discussions
</Nav.Link>
<Nav.Link href="/discussion-create" className="text-white">
Post
</Nav.Link>

</Nav>
<Nav>
<NavDropdown title="Profile" id="profile-dropdown" align="end" className="text-white">
Expand Down
47 changes: 24 additions & 23 deletions frontend/src/features/dashboard/dashboard-student.jsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
import NavBar from '../../core/component/NavBar';
import {fa8, faCalendarAlt, faComment, faUserGraduate} from '@fortawesome/free-solid-svg-icons';
import {faCalendarAlt, faComment, faUserGraduate} from '@fortawesome/free-solid-svg-icons';
import {Container, Row} from 'react-bootstrap';
import DashboardCard from '../dashboard-card/dashboard-card';

export default function StudentDashboard() {
const options = [
{icon: faUserGraduate, title: 'Students', link: '/students'},
{icon: faCalendarAlt, title: 'Events', link: '/events'},
<<<<<<< HEAD
{icon: faCalendarAlt, title: 'Feedback', link: '/feedbacks'},
{icon: faUserGraduate, title: 'Academic Resouces', link: '/academic-resouces'}
=======
{icon: faComment, title: 'Discussion', link: '/discussions'}
>>>>>>> develop
];
const options = [
{icon: faUserGraduate, title: 'Students', link: '/students'},
{icon: faCalendarAlt, title: 'Events', link: '/events'},
{icon: faComment, title: 'Discussion', link: '/discussions'},
{icon: faCalendarAlt, title: 'Events', link: '/events'},

return (
<>
<NavBar />
<Container className="mt-5">
<Row>
{options.map(opt => (
<DashboardCard icon={opt.icon} link={opt.link} title={opt.title} />
))}
</Row>
</Container>
</>
);
{icon: faCalendarAlt, title: 'Feedback', link: '/feedbacks'},
{icon: faUserGraduate, title: 'Academic Resouces', link: '/academic-resouces'},

{icon: faComment, title: 'Discussion', link: '/discussions'}
];

return (
<>
<NavBar/>
<Container className="mt-5">
<Row>
{options.map(opt => (
<DashboardCard icon={opt.icon} link={opt.link} title={opt.title}/>
))}
</Row>
</Container>
</>
);
}

0 comments on commit 07be05b

Please sign in to comment.