Skip to content

Commit 3ad3bcc

Browse files
authored
Autocomplete component replacement (#3104)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 39e94c8 commit 3ad3bcc

File tree

10 files changed

+93
-520
lines changed

10 files changed

+93
-520
lines changed

portal-ui/src/screens/Console/Buckets/BucketDetails/AddEvent.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
import React, { useCallback, useEffect, useState, Fragment } from "react";
18-
import { Button, DataTable, EventSubscriptionIcon, Grid, InputBox } from "mds";
18+
import {
19+
Autocomplete,
20+
Button,
21+
DataTable,
22+
EventSubscriptionIcon,
23+
Grid,
24+
InputBox,
25+
} from "mds";
1926
import { ErrorResponseHandler } from "../../../../common/types";
2027
import { setModalErrorSnackMessage } from "../../../../systemSlice";
2128
import { useAppDispatch } from "../../../../store";
2229
import { api } from "api";
2330
import { NotificationEventType } from "api/consoleApi";
2431
import ModalWrapper from "../../Common/ModalWrapper/ModalWrapper";
25-
import AutocompleteWrapper from "../../Common/FormComponents/AutocompleteWrapper/AutocompleteWrapper";
2632
import {
2733
formFieldStyles,
2834
modalBasic,
@@ -161,7 +167,7 @@ const AddEvent = ({
161167
},
162168
}}
163169
>
164-
<AutocompleteWrapper
170+
<Autocomplete
165171
onChange={(value: string) => {
166172
setArn(value);
167173
}}
@@ -170,7 +176,7 @@ const AddEvent = ({
170176
label={"ARN"}
171177
value={arn}
172178
options={arnValues || []}
173-
helptip={
179+
helpTip={
174180
<Fragment>
175181
<a
176182
target="blank"

portal-ui/src/screens/Console/Common/FormComponents/AutocompleteWrapper/AutocompleteWrapper.tsx

Lines changed: 0 additions & 138 deletions
This file was deleted.

portal-ui/src/screens/Console/Common/FormComponents/common/styleLibrary.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -315,50 +315,6 @@ export const snackBarCommon = {
315315
},
316316
};
317317

318-
export const inputFieldStyles = {
319-
root: {
320-
borderRadius: 3,
321-
"&::before": {
322-
borderColor: "#9c9c9c",
323-
},
324-
"& fieldset": {
325-
borderColor: "#e5e5e5",
326-
},
327-
"&:hover fieldset": {
328-
borderColor: "#07193E",
329-
},
330-
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
331-
borderColor: "#07193E",
332-
borderWidth: 1,
333-
},
334-
"&.Mui-error + p": {
335-
marginLeft: 3,
336-
},
337-
},
338-
disabled: {
339-
"&.MuiOutlinedInput-root::before": {
340-
borderColor: "#e5e5e5",
341-
borderBottomStyle: "solid" as const,
342-
borderRadius: 3,
343-
},
344-
},
345-
input: {
346-
height: 38,
347-
padding: "0 35px 0 15px",
348-
color: "#07193E",
349-
fontSize: 13,
350-
fontWeight: 600,
351-
"&:placeholder": {
352-
color: "#858585",
353-
opacity: 1,
354-
fontWeight: 400,
355-
},
356-
},
357-
error: {
358-
color: "#b53b4b",
359-
},
360-
};
361-
362318
export const formFieldStyles: any = {
363319
formFieldRow: {
364320
marginBottom: ".8rem",

portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ const AddTierConfiguration = () => {
454454
required={type !== "minio"}
455455
label={"Region"}
456456
id="region"
457-
name="region"
458457
type={type as "azure" | "s3" | "minio" | "gcs"}
459458
/>
460459
{type === s3ServiceName && (

portal-ui/src/screens/Console/Configurations/TiersConfiguration/RegionSelect.tsx

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)