From 4de26b6da0fbfd8ef192ac989787562050843958 Mon Sep 17 00:00:00 2001 From: laveshv Date: Thu, 17 Oct 2024 08:14:11 -0700 Subject: [PATCH 01/10] Create bluedialog.page.tsx --- pages/bluedialog/bluedialog.page.tsx | 98 ++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 pages/bluedialog/bluedialog.page.tsx diff --git a/pages/bluedialog/bluedialog.page.tsx b/pages/bluedialog/bluedialog.page.tsx new file mode 100644 index 0000000000..6dd7181eea --- /dev/null +++ b/pages/bluedialog/bluedialog.page.tsx @@ -0,0 +1,98 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 +import React from 'react'; + +import { + Box, + Button, + DatePicker, + ExpandableSection, + Form, + FormField, + Header, + Input, + Select, + SpaceBetween, + Textarea, +} from '~components'; + +import styles from './styles.scss'; + +export default function Bluedialogbox() { + const [showDialog, setShowDialog] = React.useState(true); + // Inputs + const [dateValue, setDateValue] = React.useState(''); + const [amountValue, setAmountValue] = React.useState('0'); + const [descriptionValue, setDescriptionValue] = React.useState(''); + const [selectedService, setSelectedService] = React.useState({ label: 'Cloudwatch', value: 'Cloudwatch' }); + + function submitData() { + console.log({ dateValue, amountValue, descriptionValue, selectedService }); + } + function skipDialog() { + setShowDialog(false); + } + + return showDialog ? ( +
+
+
Dialog header
+
+ } + > +
+ + + setDateValue(detail.value)} + value={dateValue} + openCalendarAriaLabel={selectedDate => + 'Choose certificate expiry date' + (selectedDate ? `, selected date is ${selectedDate}` : '') + } + placeholder="YYYY/MM/DD" + /> + + + setAmountValue(detail.value)} /> + + + + Provide more details to enhance troubleshooting + + } + > + + +