Skip to content

Commit

Permalink
SMA 111 changed paths for images
Browse files Browse the repository at this point in the history
  • Loading branch information
Johna91 committed Apr 30, 2024
1 parent 0e9bd08 commit db7128b
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 9 deletions.
File renamed without changes
File renamed without changes
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="pictures/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="pictures/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 = 'pictures/michael-dam-mEZ3PoFGs_k-unsplash.jpg'
const loggedOutUserImgUrl = 'pictures/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
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/components/RateGameComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export default function RateGameComponent(p: Props) {
return daysOfTheWeek[dateIndex]
}

const userProfilePicture = 'pictures/unknown-user-placeholder.png'
const opponentProfilePicture = 'pictures/unknown-user-placeholder.png'
const userProfilePicture = 'assets/unknown-user-placeholder.png'
const opponentProfilePicture = 'assets/unknown-user-placeholder.png'

const [userScore, setUserScore] = useState(0)
const [opponentScore, setOpponentScore] = useState(0)
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="\pictures\jeffrey-keenan-pUhxoSapPFA-unsplash.jpg"
src="\assets\jeffrey-keenan-pUhxoSapPFA-unsplash.jpg"
/>
</div>
<div className="col">
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="../pictures/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="../pictures/woman.svg" alt="man" />
<img src="../assets/woman.svg" alt="man" />
<p>Female</p>
</label>
</div>
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db7128b

Please sign in to comment.