Skip to content

Commit 78e4180

Browse files
committed
initilize custom option banner
1 parent 4d082e1 commit 78e4180

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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;

manager-dashboard/app/components/CustomOptionsBanner/styles.css

Whitespace-only changes.

manager-dashboard/app/views/NewTutorial/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import InputSection from '#components/InputSection';
5555
import Button from '#components/Button';
5656
import NonFieldError from '#components/NonFieldError';
5757
import EmptyMessage from '#components/EmptyMessage';
58+
import CustomOptionsBanner from '#components/CustomOptionsBanner';
5859
import {
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

manager-dashboard/app/views/NewTutorial/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)