From 6db382ed9c7011bed6331aee2b7c57ca00f12551 Mon Sep 17 00:00:00 2001 From: atulzh07 Date: Sat, 21 Oct 2023 00:15:23 +0545 Subject: [PATCH 1/2] fix: fixed webpack compilation error, added alt texts --- src/api/profile .js | 10 ---------- src/components/Navbar.js | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 src/api/profile .js diff --git a/src/api/profile .js b/src/api/profile .js deleted file mode 100644 index 2357d59..0000000 --- a/src/api/profile .js +++ /dev/null @@ -1,10 +0,0 @@ -import axios from "./index"; - -class ProfileApi { - - static edit = (id, body) => { - return axios.put(`/user/${id}`, body) - } -} - -export default ProfileApi; \ No newline at end of file diff --git a/src/components/Navbar.js b/src/components/Navbar.js index d9ff09b..0a0123f 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -10,7 +10,7 @@ const Header = () => { - + profileImg2 From 611340cad8cf76c7915dc17966c0f9bfb32dd10b Mon Sep 17 00:00:00 2001 From: atulzh07 Date: Sat, 21 Oct 2023 10:16:21 +0545 Subject: [PATCH 2/2] fix: webpack compilation error --- src/components/fields/SelectField.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/fields/SelectField.js b/src/components/fields/SelectField.js index 0584dd1..b20fcb4 100644 --- a/src/components/fields/SelectField.js +++ b/src/components/fields/SelectField.js @@ -1,4 +1,6 @@ -export default ({id, label, value, onChange, className, options, ...rest})=> { +const selectFields = function (){} + +export default selectFields(({id, label, value, onChange, className, options, ...rest}) => { return ( <> {label && } @@ -17,4 +19,4 @@ export default ({id, label, value, onChange, className, options, ...rest})=> { ) -} \ No newline at end of file +}) \ No newline at end of file