From d28d15d89aaf9759f1d959a37015f1acafd33a9f Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Thu, 28 Sep 2023 22:16:42 +0530 Subject: [PATCH] Add loading element to searchPage #34 --- src/routes/search/index.jsx | 43 +++++++++++++++++++++++++++- src/routes/search/search.module.scss | 2 +- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/routes/search/index.jsx b/src/routes/search/index.jsx index d85ba37..b109ff6 100644 --- a/src/routes/search/index.jsx +++ b/src/routes/search/index.jsx @@ -2,7 +2,8 @@ import { useEffect, useState } from "react"; import TextField from "@mui/material/TextField"; -import LinearProgress from "@mui/material/LinearProgress"; +import CircularProgress from "@mui/material/CircularProgress"; +import InputAdornment from "@mui/material/InputAdornment"; import { useBackdropStore } from "../../utils/store/backdrop"; @@ -170,6 +171,46 @@ const SearchPage = () => { inputProps={{ className: "search-searchbar-input", }} + InputProps={{ + style: { + border: "100px !important", + }, + startAdornment: ( + +
+ + +
+
+ ), + }} value={searchTerm} onChange={(e) => setSearchTerm(e.target.value)} /> diff --git a/src/routes/search/search.module.scss b/src/routes/search/search.module.scss index 17b056d..ed49d1d 100644 --- a/src/routes/search/search.module.scss +++ b/src/routes/search/search.module.scss @@ -13,7 +13,7 @@ border-radius: 100px !important; background: rgb(255 255 255 / 0.09); border: none !important; - .MuiInputBase-root.MuiOutlinedInput-root.MuiInputBase-colorPrimary.MuiInputBase-formControl.MuiInputBase-hiddenLabel.css-187yyed-MuiInputBase-root-MuiOutlinedInput-root { + .MuiInputBase-root { border-radius: 100px !important; } &-input {