Skip to content

Commit

Permalink
Finalize favorite cities in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
lunargravity committed Aug 7, 2024
1 parent b03a491 commit 58f8b5c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,36 @@ export default function App() {
longitude: '106.9177016',
timezone: 'Asia/Ulaanbaatar',
},
{
address: 'New York, New York, United States of America',
latitude: 40.7127281,
longitude: -74.0060152,
timezone: 'America/New_York',
},
{
address: 'London, United Kingdom',
latitude: 51.4893335,
longitude: -0.1440551,
timezone: 'Europe/London',
},
{
address: 'Tokyo, Japan',
latitude: 35.6821936,
longitude: 139.762221,
timezone: 'Asia/Tokyo',
},
{
address: 'Paris, France',
latitude: 48.8534951,
longitude: 2.3483915,
timezone: 'Europe/Paris',
},
{
address: 'Sydney, New South Wales, Australia',
latitude: -33.8698439,
longitude: 151.2082848,
timezone: 'Australia/Sydney',
},
]);
const [isLiked, setIsLiked] = useState(false);

Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Sidebar({
<div className='modal-backdrop'>
<div className='sidebar-container'>
<div className='favorite-cities'>
<h2 className='favorites-title'>Favorites:</h2>
<h2 className='favorites-title'>Favorite Cities:</h2>
<ul>
{currentFavCities.map((city) => {
return (
Expand Down

0 comments on commit 58f8b5c

Please sign in to comment.