Skip to content

Commit 7dd75b4

Browse files
committed
Update nav bar to send current release link to GitHub release current release page instead of repository home
1 parent 3e566e1 commit 7dd75b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const Navbar: React.FC = () => {
9292
</Link>
9393
)}
9494
<a
95-
href="https://github.com/conorheffron/booking-sys"
95+
href={`https://github.com/conorheffron/booking-sys/releases/tag/v${appVersion}`}
9696
id="appVersion"
9797
style={{ marginLeft: '1.5em', textDecoration: 'none' }}
9898
target="_blank"

frontend/src/components/__tests__/Navbar.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('Navbar', () => {
8282
(getCurrentUser as jest.Mock).mockResolvedValue('test-user');
8383
renderWithRouter(<Navbar />);
8484
const link = screen.getByRole('link', { name: /Version:/ });
85-
expect(link).toHaveAttribute('href', 'https://github.com/conorheffron/booking-sys');
85+
expect(link).toHaveAttribute('href', 'https://github.com/conorheffron/booking-sys/releases/tag/v…');
8686
expect(link).toHaveAttribute('target', '_blank');
8787
expect(link).toHaveAttribute('rel', expect.stringContaining('noopener'));
8888
});

0 commit comments

Comments
 (0)