-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from fed1v/master
- Loading branch information
Showing
33 changed files
with
309 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {MemoizedFavoritePlaceCardList} from '../favorite-place-card/favorite-place-card-list.tsx'; | ||
import {Offers} from '../../types/offer.ts'; | ||
|
||
type FavoritesContentProps = { | ||
favoriteOffers: Offers; | ||
} | ||
|
||
export function FavoritesContent({favoriteOffers}: FavoritesContentProps) { | ||
return ( | ||
<main className="page__main page__main--favorites"> | ||
<div className="page__favorites-container container"> | ||
<section className="favorites"> | ||
<h1 className="favorites__title">Saved listing</h1> | ||
|
||
<MemoizedFavoritePlaceCardList | ||
offers={favoriteOffers} | ||
/> | ||
</section> | ||
</div> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export function FavoritesEmpty() { | ||
return ( | ||
<main className="page__main page__main--favorites page__main--favorites-empty"> | ||
<div className="page__favorites-container container"> | ||
<section className="favorites favorites--empty"> | ||
<h1 className="visually-hidden">Favorites (empty)</h1> | ||
<div className="favorites__status-wrapper"> | ||
<b className="favorites__status">Nothing yet saved.</b> | ||
<p className="favorites__status-description">Save properties to narrow down search or plan your future | ||
trips. | ||
</p> | ||
</div> | ||
</section> | ||
</div> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.