diff --git a/src/features/Main/Footer/_test_/index.test.jsx b/src/features/Main/Footer/_test_/index.test.jsx
index cee4d62a..a729d3a6 100644
--- a/src/features/Main/Footer/_test_/index.test.jsx
+++ b/src/features/Main/Footer/_test_/index.test.jsx
@@ -18,7 +18,7 @@ describe('Footer Component', () => {
await waitFor(() => {
const linkElements = screen.getAllByRole('link');
- expect(linkElements).toHaveLength(2);
+ expect(linkElements).toHaveLength(4);
});
});
});
diff --git a/src/features/Main/Footer/index.jsx b/src/features/Main/Footer/index.jsx
index f8b8609a..9fd29411 100644
--- a/src/features/Main/Footer/index.jsx
+++ b/src/features/Main/Footer/index.jsx
@@ -1,5 +1,7 @@
-import { getConfig } from '@edx/frontend-platform';
import React from 'react';
+import { getConfig } from '@edx/frontend-platform';
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
+import { faCookieBite, faEarthAmericas } from '@fortawesome/free-solid-svg-icons';
import './index.scss';
export const Footer = () => {
@@ -9,17 +11,34 @@ export const Footer = () => {
return (
);
};
diff --git a/src/features/Main/Footer/index.scss b/src/features/Main/Footer/index.scss
index 19d7a47a..8e820a7a 100644
--- a/src/features/Main/Footer/index.scss
+++ b/src/features/Main/Footer/index.scss
@@ -1,34 +1,47 @@
@import "assets/colors.scss";
footer {
- padding: 46px 24px 136px;
+ padding: 30px 24px;
display: block;
ul.footer-links {
display: flex;
flex-wrap: wrap;
- gap: 24px;
justify-content: center;
list-style-type: none;
margin: 0;
padding: 0;
- li {
+ .footer-item {
margin: 0;
- padding: 0;
+ padding: 0 20px;
+ color: $primary;
+
+ &:not(:last-child) {
+ border-right: 1px solid $gray-60;
+ }
a {
- color: $color-gray;
+ color: $primary;
font-size: 14px;
line-height: 1.143;
- text-decoration: none;
white-space: nowrap;
&:hover {
- color: $color-black;
- text-decoration: underline;
+ color: $primary-dark;
}
}
+
+ .icon {
+ margin-right: 5px;
+ }
}
}
+
+ .footer-copyright {
+ text-align: center;
+ font-size: 14px;
+ color: $color-black;
+ margin-top: 5px;
+ }
}
diff --git a/src/features/Main/Header/_test_/index.test.jsx b/src/features/Main/Header/_test_/index.test.jsx
index f2fdab1a..f855dbad 100644
--- a/src/features/Main/Header/_test_/index.test.jsx
+++ b/src/features/Main/Header/_test_/index.test.jsx
@@ -1,7 +1,6 @@
import React from 'react';
import { render, fireEvent, act } from '@testing-library/react';
import { AppContext } from '@edx/frontend-platform/react';
-import { InstitutionContext } from 'features/Main/institutionContext';
import { Header } from 'features/Main/Header';
import '@testing-library/jest-dom/extend-expect';
@@ -20,17 +19,13 @@ describe('Header', () => {
await act(async () => {
const renderResult = render(
-
-
-
+
,
);
getByText = renderResult.getByText;
});
-
- expect(getByText('Institution Name')).toBeInTheDocument();
- expect(getByText('U')).toBeInTheDocument();
+ expect(getByText('User')).toBeInTheDocument();
});
it('renders header correctly', () => {
@@ -40,11 +35,11 @@ describe('Header', () => {
,
);
- const institutionName = getByText('No Institution Found');
- const avatar = getByText('U');
+ const titleApp = getByText('CertPREP Training Center Dashboard');
+ const userName = getByText('User');
- expect(institutionName).toBeInTheDocument();
- expect(avatar).toBeInTheDocument();
+ expect(userName).toBeInTheDocument();
+ expect(titleApp).toBeInTheDocument();
});
it('toggles account menu on button click', () => {
diff --git a/src/features/Main/Header/index.jsx b/src/features/Main/Header/index.jsx
index 6c9049fe..7c6d7bef 100644
--- a/src/features/Main/Header/index.jsx
+++ b/src/features/Main/Header/index.jsx
@@ -1,60 +1,46 @@
-import React, { useContext, useState } from 'react';
+import React, { useContext } from 'react';
import { AppContext } from '@edx/frontend-platform/react';
import { getConfig } from '@edx/frontend-platform';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
-import { faCaretDown } from '@fortawesome/free-solid-svg-icons';
-import { InstitutionContext } from 'features/Main/institutionContext';
+import { faEarthAmericas } from '@fortawesome/free-solid-svg-icons';
+import { Dropdown } from '@edx/paragon';
import 'features/Main/Header/index.scss';
export const Header = () => {
- const dataInstitution = useContext(InstitutionContext);
- const [isAccountMenuOpen, setIsAccountMenuOpen] = useState(false);
- const handleAccountMenuToggle = () => {
- setIsAccountMenuOpen((prevState) => !prevState);
- };
const { authenticatedUser, config } = useContext(AppContext);
- const usernameFirstLetter = authenticatedUser.username.charAt(0).toUpperCase();
+ const userName = authenticatedUser.username;
return (