File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed
components/CustomOptionsBanner Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import { IoAlertCircleOutline } from 'react-icons/io5' ;
3+ import styles from './styles.css' ;
4+
5+ function CustomOptionsBanner ( ) {
6+ return (
7+ < div className = { styles . banner } >
8+ < div >
9+ < IoAlertCircleOutline />
10+ </ div >
11+ < div >
12+ While creating options, please use the values as listed below for HOT Tasking Manager Geometries
13+ </ div >
14+ </ div >
15+ ) ;
16+ }
17+
18+ export default CustomOptionsBanner ;
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import InputSection from '#components/InputSection';
5555import Button from '#components/Button' ;
5656import NonFieldError from '#components/NonFieldError' ;
5757import EmptyMessage from '#components/EmptyMessage' ;
58+ import CustomOptionsBanner from '#components/CustomOptionsBanner' ;
5859import {
5960 valueSelector ,
6061 labelSelector ,
@@ -511,6 +512,7 @@ function NewTutorial(props: Props) {
511512 />
512513 { ( customOptions && customOptions . length > 0 ) ? (
513514 < div className = { styles . customOptionContainer } >
515+ < CustomOptionsBanner />
514516 < div className = { styles . customOptionList } >
515517 { customOptions . map ( ( option , index ) => (
516518 < ExpandableContainer
Original file line number Diff line number Diff line change @@ -611,7 +611,6 @@ export const tutorialFormSchema: TutorialFormSchema = {
611611 if ( option . length > MAX_OPTIONS ) {
612612 return `There shouldn\`t be more than ${ MAX_OPTIONS } options` ;
613613 }
614-
615614 return undefined ;
616615 } ,
617616 keySelector : ( key ) => key . optionId ,
You can’t perform that action at this time.
0 commit comments