Skip to content

Commit

Permalink
PRMP-1348 - remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
abid-nhs committed Jan 24, 2025
1 parent 13df66e commit c0fdc73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
9 changes: 0 additions & 9 deletions app/src/components/layout/navLinks/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@ import { useSessionContext } from '../../../providers/sessionProvider/SessionPro
const NavLinks = () => {
const navigate = useNavigate();
const [session] = useSessionContext();
const [width, setWidth] = useState<number>(window.innerWidth);
const nav = (e: ReactEvent<HTMLAnchorElement, MouseEvent>, link: string) => {
e.preventDefault();
navigate(link);
};

useEffect(() => {
const handleResizeWindow = () => setWidth(window.innerWidth);
window.addEventListener('resize', handleResizeWindow);
return () => {
window.removeEventListener('resize', handleResizeWindow);
};
}, []);

const appLinks = [
{ href: routes.START, label: 'Home', id: 'home-btn' },
{ href: routes.SEARCH_PATIENT, label: 'Search for a patient', id: 'search-btn' },
Expand Down
39 changes: 0 additions & 39 deletions app/src/styles/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -656,45 +656,6 @@ $hunit: '%';
}
}

// NavLinks
.navlinks {
display: initial;

&_wrapper {
display: flex;
flex-flow: row nowrap;
}

.nhsuk-header__navigation-title {
color: $color_nhsuk-white;
}

.nhsuk-header__navigation-close {
display: none;
}

&_item {
a {
color: $color_nhsuk-white;
text-decoration: underline;
text-decoration-color: $color_nhsuk-white;
text-underline-offset: 2px;
}

a:hover {
text-decoration: none;
}

a:visited {
color: $color_nhsuk-white;
}

&--desktop {
margin: 0 2rem;
}
}
}

// override
.nhsuk-back-link {
margin-top: nhsuk-spacing(0);
Expand Down

0 comments on commit c0fdc73

Please sign in to comment.