Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmman committed Nov 6, 2024
1 parent 93d49bd commit 32970a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Pages/not-found-page/not-found-page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Link } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';
import {AppRoutes} from '../../dataTypes/enums/app-routes.ts';

export function NotFoundPage(): React.JSX.Element {
return (
Expand All @@ -12,7 +13,7 @@ export function NotFoundPage(): React.JSX.Element {
The page you are looking for might have been removed or is temporarily
unavailable.
</p>
<Link to="/" className='not-found-page__link'>
<Link to={AppRoutes.MainPage} className='not-found-page__link'>
back to main page
</Link>
</main>
Expand Down
2 changes: 1 addition & 1 deletion src/components/offer/offer-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function OfferCard({
</div>
<Rating rating={rating} usePlace="place-card" />
<h2 className="place-card__name">
<Link to={`${AppRoutes.Offer}/:${id}`}>{title}</Link>
<Link to={`${AppRoutes.Offer}/${id}`}>{title}</Link>
</h2>
<p className="place-card__type">{type}</p>
</div>
Expand Down

0 comments on commit 32970a8

Please sign in to comment.