Skip to content

Commit

Permalink
SMA 111 added / to paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Johna91 committed Apr 30, 2024
1 parent 755e0e5 commit 2e9db2d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/sportsmatch-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="assets/favicon.png" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SPORTS MINGLE</title>
</head>
Expand Down
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/components/EventHistoryItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) {
<div className="user-side">
<div className="profile">
<div className="user-avatar">
<Avatar src="assets/michael-dam-mEZ3PoFGs_k-unsplash.jpg" />
<Avatar src="/assets/michael-dam-mEZ3PoFGs_k-unsplash.jpg" />
</div>
<div className="user-name">You</div>
</div>
Expand Down Expand Up @@ -78,7 +78,7 @@ function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) {
</div>
<div className="profile">
<div className="opponent-avatar">
<Avatar src="assets/jeffrey-keenan-pUhxoSapPFA-unsplash.jpg" />
<Avatar src="/assets/jeffrey-keenan-pUhxoSapPFA-unsplash.jpg" />
</div>
<div className="opponent-name">
{eventHistoryDTO.opponent?.name}
Expand Down
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { NavDropdown } from 'react-bootstrap'
import { OpenAPI, ExSecuredEndpointService, ApiError } from '../generated/api'

function Navbar() {
const loggedInUserImgUrl = 'assets/michael-dam-mEZ3PoFGs_k-unsplash.jpg'
const loggedOutUserImgUrl = 'assets/unknown-user-placeholder.png'
const loggedInUserImgUrl = '/assets/michael-dam-mEZ3PoFGs_k-unsplash.jpg'
const loggedOutUserImgUrl = '/assets/unknown-user-placeholder.png'

const [isLoggedIn, setLoggedIn] = useState<boolean>(false)
const [userId, setUserId] = useState<number>()
Expand Down
2 changes: 1 addition & 1 deletion frontend/sportsmatch-app/src/components/RatingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function RatingCard({ rating }: RatingCardProps) {
<div className="col-2">
<img
className="rated-img"
src="\assets\jeffrey-keenan-pUhxoSapPFA-unsplash.jpg"
src="/assets/jeffrey-keenan-pUhxoSapPFA-unsplash.jpg"
/>
</div>
<div className="col">
Expand Down
2 changes: 1 addition & 1 deletion frontend/sportsmatch-app/src/components/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function UserCard({ user, summary }: UserCardProp) {
<div className="user-card">
<div className="row">
<div className="col profile-details">
<img src="\assets\michael-dam-mEZ3PoFGs_k-unsplash.jpg" />
<img src="/assets/michael-dam-mEZ3PoFGs_k-unsplash.jpg" />
<ul>
<li>
<h4>{user.name}</h4>
Expand Down
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/pages/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function UserInfo() {
checked={selectedGender === 'male'}
onChange={() => handleSelectGender('male')}
/>
<img src="../assets/man.svg" alt="man" />
<img src="/assets/man.svg" alt="man" />
<p>Male</p>
</label>
</div>
Expand All @@ -138,7 +138,7 @@ export default function UserInfo() {
checked={selectedGender === 'female'}
onChange={() => handleSelectGender('female')}
/>
<img src="../assets/woman.svg" alt="man" />
<img src="/assets/woman.svg" alt="man" />
<p>Female</p>
</label>
</div>
Expand Down

0 comments on commit 2e9db2d

Please sign in to comment.