import React, { useState } from 'react'; import { IonHeader, IonToolbar, IonContent, IonPage, IonButtons, IonMenuButton, IonButton, IonIcon, IonDatetime, IonSelectOption, IonList, IonItem, IonLabel, IonSelect, IonPopover, IonText, } from '@ionic/react'; import './About.scss'; import { ellipsisHorizontal, ellipsisVertical } from 'ionicons/icons'; import AboutPopover from '../components/AboutPopover'; import { format, parseISO } from 'date-fns'; interface AboutProps {} const About: React.FC = () => { const [showPopover, setShowPopover] = useState(false); const [popoverEvent, setPopoverEvent] = useState(); const [location, setLocation] = useState< 'madison' | 'austin' | 'chicago' | 'seattle' >('madison'); const [conferenceDate, setConferenceDate] = useState( '2047-05-17T00:00:00-05:00' ); const selectOptions = { header: 'Select a Location', }; const presentPopover = (e: React.MouseEvent) => { setPopoverEvent(e.nativeEvent); setShowPopover(true); }; function displayDate(date: string, dateFormat: string) { return format(parseISO(date), dateFormat); } return (
{/* Instead of loading an image each time the select changes, use opacity to transition them */}

About

The Ionic Conference is a one-day conference on{' '} {displayDate(conferenceDate, 'MMM dd, yyyy')} featuring talks from the Ionic team. It is focused on Ionic applications being built with Ionic Framework. This includes migrating apps to the latest version of the framework, Angular concepts, Webpack, Sass, and many other technologies used in Ionic 2. Tickets are completely sold out, and we’re expecting more than 1000 developers – making this the largest Ionic conference ever!

Details

setLocation(e.detail.value as any)} > Madison, WI Austin, TX Chicago, IL Seattle, WA Date {displayDate(conferenceDate, 'MMM dd, yyyy')} setConferenceDate(e.detail.value! as string) } presentation="date" >

Internet

Wifi network ica{displayDate(conferenceDate, 'y')} Password makegoodthings
setShowPopover(false)} > setShowPopover(false)} />
); }; export default React.memo(About);