Skip to content

Commit

Permalink
Istanbul support
Browse files Browse the repository at this point in the history
  • Loading branch information
simonottosen authored Jul 2, 2024
1 parent b9fec1b commit f6092ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend-nextgen/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ function App() {
airportName = 'Dublin Airport';
}

if (selectedAirport === 'ist') {
airportName = 'Istanbul Airport';
}


const day = selectedDateTime.getDate();
const month = selectedDateTime.toLocaleString('default', { month: 'long' });
const hour = selectedDateTime.getHours();
Expand Down Expand Up @@ -169,6 +174,7 @@ function App() {
<Dropdown.Item eventKey="lhr">🇬🇧 London Heathrow Airport</Dropdown.Item>
<Dropdown.Item eventKey="ams">🇳🇱 Amsterdam Schipol Airport</Dropdown.Item>
<Dropdown.Item eventKey="dub">🇮🇪 Dublin Airport</Dropdown.Item>
<Dropdown.Item eventKey="ist">🇹🇷 Istanbul Airport</Dropdown.Item>
</DropdownButton>

</div>
Expand Down

0 comments on commit f6092ae

Please sign in to comment.