Update requirement files with new feature templates and fix backend API error message, along with mobile project config updates and documentation improvements
This commit is contained in:
@@ -36,9 +36,9 @@ import '../SpeakerList.scss';
|
||||
import { getEvents } from '../../api/getEvents';
|
||||
import { format } from 'date-fns';
|
||||
import { Event } from './types';
|
||||
import { chevronBackOutline, heart, menuOutline } from 'ionicons/icons';
|
||||
import { chevronBackOutline, heart, menuOutline, warningOutline } from 'ionicons/icons';
|
||||
import AboutPopover from '../../components/AboutPopover';
|
||||
import WarningIconSvg from './warning-icon.svg';
|
||||
// import WarningIconSvg from './warning-icon.svg';
|
||||
|
||||
interface OwnProps {}
|
||||
|
||||
@@ -70,7 +70,11 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
router.push(`/event_detail/${event_id}`);
|
||||
}
|
||||
|
||||
const ModalExample = ({ dismiss }: { dismiss: (data?: string | null | undefined | number, role?: string) => void }) => {
|
||||
const ModalExample = ({
|
||||
dismiss,
|
||||
}: {
|
||||
dismiss: (data?: string | null | undefined | number, role?: string) => void;
|
||||
}) => {
|
||||
const inputRef = useRef<HTMLIonInputElement>(null);
|
||||
return (
|
||||
<IonPage>
|
||||
@@ -91,7 +95,12 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
</IonHeader>
|
||||
<IonContent className="ion-padding">
|
||||
<IonItem>
|
||||
<IonInput ref={inputRef} labelPlacement="stacked" label="Enter your name" placeholder="Your name" />
|
||||
<IonInput
|
||||
ref={inputRef}
|
||||
labelPlacement="stacked"
|
||||
label="Enter your name"
|
||||
placeholder="Your name"
|
||||
/>
|
||||
</IonItem>
|
||||
</IonContent>
|
||||
</IonPage>
|
||||
@@ -101,7 +110,9 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
const [present, dismiss] = useIonModal(ModalExample, {
|
||||
dismiss: (data: string, role: string) => dismiss(data, role),
|
||||
});
|
||||
const [message, setMessage] = useState('This modal example uses the modalController to present and dismiss modals.');
|
||||
const [message, setMessage] = useState(
|
||||
'This modal example uses the modalController to present and dismiss modals.'
|
||||
);
|
||||
|
||||
function handleBackOnClick() {
|
||||
router.goBack();
|
||||
@@ -138,7 +149,8 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
alignItems: 'center',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
{/* TODO: need to resume WarningIconSvg */}
|
||||
{/* <div
|
||||
style={{
|
||||
width: '33vw',
|
||||
height: '33vw',
|
||||
@@ -147,7 +159,10 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundPosition: 'center',
|
||||
}}
|
||||
></div>
|
||||
></div> */}
|
||||
{/* TODO: resume using svg, temporary using IonIcon for build */}
|
||||
<IonIcon icon={warningOutline}></IonIcon>
|
||||
{/* */}
|
||||
Sorry but Not implemented
|
||||
<IonButton onClick={handleBackOnClick} fill="clear" size="large">
|
||||
<IonIcon icon={chevronBackOutline} slot="start"></IonIcon>
|
||||
@@ -157,7 +172,12 @@ const MessageList: React.FC<SpeakerListProps> = ({ speakers, speakerSessions })
|
||||
</IonContent>
|
||||
|
||||
{/* REQ0079/event-filter */}
|
||||
<IonModal ref={modal} trigger="message-list-open-modal" initialBreakpoint={0.5} breakpoints={[0, 0.25, 0.5, 0.75]}>
|
||||
<IonModal
|
||||
ref={modal}
|
||||
trigger="message-list-open-modal"
|
||||
initialBreakpoint={0.5}
|
||||
breakpoints={[0, 0.25, 0.5, 0.75]}
|
||||
>
|
||||
<IonContent className="ion-padding">
|
||||
<div
|
||||
style={{
|
||||
|
Reference in New Issue
Block a user