Comments (7)
Update your header.js with below code. This will solve the problem
import React from 'react';
import { ReactNavbar } from 'overlay-navbar';
import { MdAccountCircle } from 'react-icons/md';
import { MdSearch } from 'react-icons/md';
import { MdAddShoppingCart } from 'react-icons/md';
import logo from '../../../images/logo.png';
const options = {
burgerColorHover: '#eb4034',
logo,
logoWidth: '20vmax',
navColor1: 'white',
logoHoverSize: '10px',
logoHoverColor: '#eb4034',
link1Text: 'Home',
link2Text: 'Products',
link3Text: 'Contact Us',
link4Text: 'About Us',
link1Url: '/',
link2Url: '/products',
link3Url: '/contact',
link4Url: '/about',
link1Size: '1.3vmax',
link1Color: 'rgba(35, 35, 35,0.8)',
nav1justifyContent: 'flex-end',
nav2justifyContent: 'flex-end',
nav3justifyContent: 'flex-start',
nav4justifyContent: 'flex-start',
link1ColorHover: '#eb4034',
link1Margin: '1vmax',
profileIcon: true,
profileIconColor: 'rgba(35, 35, 35,0.8)',
profileIconUrl: '/login',
ProfileIconElement: MdAccountCircle,
searchIcon: true,
searchIconColor: 'rgba(35, 35, 35,0.8)',
SearchIconElement: MdSearch,
cartIcon: true,
cartIconColor: 'rgba(35, 35, 35,0.8)',
CartIconElement: MdAddShoppingCart,
profileIconColorHover: '#eb4034',
searchIconColorHover: '#eb4034',
cartIconColorHover: '#eb4034',
cartIconMargin: '1vmax',
};
const Header = () => {
return <ReactNavbar {...options} />;
};
export default Header;
from mernprojectecommerce.
Showing like this
from mernprojectecommerce.
did you got solution for this
from mernprojectecommerce.
This helps me:
<ReactNavbar searchIcon = {true} SearchIconElement = {MdSearch} profileIcon = {true} ProfileIconElement = {MdAccountCircle} cartIcon = {true} CartIconElement = {MdShoppingCart} {...options} /> </div>
from mernprojectecommerce.
Showing like this
Please check above comment
from mernprojectecommerce.
I have just started with Front-End part of E-Commerce project and compilation is going 100% successful but Navbar is not visible on react page. It's completely a blank page. Someone please help me to resolve this issue.
Here are the snapshots of code.
I've force installed some of the packages using --legacy-peer-deps because the project is old and some of the libraries are deprecated but still usable as per the info from stackoverflow.
from mernprojectecommerce.
I have just started with Front-End part of E-Commerce project and compilation is going 100% successful but Navbar is not visible on react page. It's completely a blank page. Someone please help me to resolve this issue.
Here are the snapshots of code.
I've force installed some of the packages using --legacy-peer-deps because the project is old and some of the libraries are deprecated but still usable as per the info from stackoverflow.
SOLVED !
I updated to new format of index.js I was using the older one.
index.js(UPDATED)
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
const root = ReactDOM.createRoot(
document.getElementById('root')
);
root.render(
)
from mernprojectecommerce.
Related Issues (20)
- TypeError : params.getValue is not a function this error is pop up in MyOrder.js file does anyone know the solution for this error reply me HOT 2
- TypeError: Cannot read properties of undefined (reading 'path')
- Products not fetching when I'm using filter function on backend
- Resource not found. Invalid : _id for orders/me route
- Forgot Password HOT 3
- Couldn't decode base64 while updating profile HOT 1
- File not included in src dircetory HOT 1
- Cannot destructure property 'product' of '(0 , react_redux__WEBPACK_IMPORTED_MODULE_3__.useSelector)(...)' as it is undefined. HOT 2
- can someone share productAction.js and store.js code? im getting error HOT 1
- can someone share loginsignup.js file
- The requested model './io5' contains conflicting star export for the name 'IoLogoAndrpod' , 'IoLoAngular',.... ERROR in ./node_modules/react-icons/all.js 4:0-22 HOT 1
- backend is deployed properly and running fine in localhost but frontend is not running properly...data is not getting fetched from data ase after deploying frontend
- 🚨MongooseError: Query was already executed HOT 1
- Made the Project
- problem in cart item
- problem in cart item the not update the count of product
- jsonwebtoken-error-typeerror-option-expires-is-invalid HOT 1
- redux format is old plz can you implement new format its not working HOT 1
- proxy error HOT 1
- Redirection function error in Cart.jsx
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mernprojectecommerce.