Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhdev-bajiya committed Nov 6, 2022
1 parent 06f70bc commit 801003f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 29 deletions.
5 changes: 0 additions & 5 deletions src/Pages/Shopping/Shopping.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import React from 'react'
import './Shopping.css'
import activePage from '../../compenent/ActivePage/ActivePage'


function Shopping() {


React.useEffect(() => {
activePage("shopping__page")
}, []);

return (
<div className='shopping__page'>Shopping</div>
)
Expand Down
1 change: 0 additions & 1 deletion src/compenent/ActivePage/ActivePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const activePage = (pageId) => {
document.getElementById("maps__page").removeAttribute("class", "active__page")
document.getElementById("translate__page").removeAttribute("class", "active__page")
document.getElementById("books__page").removeAttribute("class", "active__page")
document.getElementById("shopping__page").removeAttribute("class", "active__page")
document.getElementById(`${pageId}`).setAttribute("class", "active__page")
}

Expand Down
1 change: 0 additions & 1 deletion src/compenent/ActivePage/ActivePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const activePage = (pageId) => {
document.getElementById("maps__page").removeAttribute("class", "active__page")
document.getElementById("translate__page").removeAttribute("class", "active__page")
document.getElementById("books__page").removeAttribute("class", "active__page")
document.getElementById("shopping__page").removeAttribute("class", "active__page")
document.getElementById(`${pageId}`).setAttribute("class", "active__page")
}

Expand Down
12 changes: 1 addition & 11 deletions src/compenent/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,7 @@ const Navbar = () => {
</svg>
Books
</Link>
{/* <Link to="/shopping" id="shopping__page">
<svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 494.07 494.07" space="preserve">
<g id="XMLID_103_">
<path id="XMLID_109_" d="M68.693,96.362c26.596,0,48.166-21.566,48.166-48.178C116.858,21.566,95.289,0,68.693,0 C42.066,0,20.491,21.566,20.491,48.184C20.491,74.796,42.066,96.362,68.693,96.362z" />
<path id="XMLID_108_" d="M276.356,332.831l72.025,65.686c1.145,1.053,2.528,1.634,3.845,2.308h15.281 c1.672-0.884,3.3-1.922,4.653-3.404l36.753-40.304l9.575-44.963H271.941L276.356,332.831z" />
<path id="XMLID_107_" d="M342.056,187.312c-6.876-6.261-17.516-5.771-23.797,1.096L265.55,246.21h141.093L342.056,187.312z" />
<path id="XMLID_104_" d="M472.067,268.814c-3.134-3.873-7.855-6.12-12.814-6.12h-221.39 c-19.451-18.811-10.599-10.247-39.478-38.177c1.323-2.158,2.302-4.549,2.768-7.181c1.935-11.213-5.566-21.886-16.776-23.826 l-65.872-11.437l-30.785-62.973c-0.098-0.192-0.275-0.296-0.367-0.489c0.141,0.168,0.318,0.281,0.465,0.45l31.212,40.635v-12.576 c0-22.908-18.576-41.486-41.486-41.486H59.84c-22.928,0-41.504,18.578-41.504,41.486l0.208,322.224 c0,13.659,11.064,24.725,24.73,24.725c13.665,0,24.729-11.066,24.729-24.725V321.982h16.488v147.362 c0,7.129-1.984,13.729-5.174,19.583c4.17,3.18,9.307,5.142,14.958,5.142c13.671,0,24.729-11.066,24.729-24.725l0.019-228.614 l-20.768-3.607l-6.134-1.065c-10.415-1.809-18.337-9.584-20.847-19.196l-20.676-79.626c-0.031-0.159,0.018-0.322-0.012-0.481 c0.061,0.144,0.049,0.297,0.11,0.441l35.389,72.429c2.896,5.942,8.485,10.127,15.005,11.253l56.603,9.83l-0.165,0.159 c51.472,49.773,37.789,36.539,58.605,56.669l31.904,149.698c1.647,7.604,8.357,13.047,16.132,13.047h17.052 c-3.508,4.595-5.682,10.265-5.682,16.485c0,15.076,12.232,27.303,27.3,27.303c15.086,0,27.306-12.227,27.306-27.303 c0-6.22-2.162-11.89-5.669-16.485h41.486c-3.508,4.595-5.682,10.265-5.682,16.485c0,15.076,12.239,27.303,27.306,27.303 c15.086,0,27.3-12.227,27.3-27.303c0-6.22-2.155-11.89-5.663-16.485h17.063c7.763,0,14.492-5.443,16.114-13.047l32.97-154.618 C476.415,277.756,475.19,272.677,472.067,268.814z M412.937,417.313H277.495l-25.917-121.645h187.294L412.937,417.313z" />
</g>
</svg>
Shopping
</Link> */}

</div>
</span>
</div>
Expand Down
11 changes: 0 additions & 11 deletions src/compenent/Navbar/NavbarTranslate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ const NavbarTranslate = () => {
</svg>
Books
</Link>
{/* <Link to="/shopping" id="shopping__page">
<svg xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 494.07 494.07" space="preserve">
<g id="XMLID_103_">
<path id="XMLID_109_" d="M68.693,96.362c26.596,0,48.166-21.566,48.166-48.178C116.858,21.566,95.289,0,68.693,0 C42.066,0,20.491,21.566,20.491,48.184C20.491,74.796,42.066,96.362,68.693,96.362z" />
<path id="XMLID_108_" d="M276.356,332.831l72.025,65.686c1.145,1.053,2.528,1.634,3.845,2.308h15.281 c1.672-0.884,3.3-1.922,4.653-3.404l36.753-40.304l9.575-44.963H271.941L276.356,332.831z" />
<path id="XMLID_107_" d="M342.056,187.312c-6.876-6.261-17.516-5.771-23.797,1.096L265.55,246.21h141.093L342.056,187.312z" />
<path id="XMLID_104_" d="M472.067,268.814c-3.134-3.873-7.855-6.12-12.814-6.12h-221.39 c-19.451-18.811-10.599-10.247-39.478-38.177c1.323-2.158,2.302-4.549,2.768-7.181c1.935-11.213-5.566-21.886-16.776-23.826 l-65.872-11.437l-30.785-62.973c-0.098-0.192-0.275-0.296-0.367-0.489c0.141,0.168,0.318,0.281,0.465,0.45l31.212,40.635v-12.576 c0-22.908-18.576-41.486-41.486-41.486H59.84c-22.928,0-41.504,18.578-41.504,41.486l0.208,322.224 c0,13.659,11.064,24.725,24.73,24.725c13.665,0,24.729-11.066,24.729-24.725V321.982h16.488v147.362 c0,7.129-1.984,13.729-5.174,19.583c4.17,3.18,9.307,5.142,14.958,5.142c13.671,0,24.729-11.066,24.729-24.725l0.019-228.614 l-20.768-3.607l-6.134-1.065c-10.415-1.809-18.337-9.584-20.847-19.196l-20.676-79.626c-0.031-0.159,0.018-0.322-0.012-0.481 c0.061,0.144,0.049,0.297,0.11,0.441l35.389,72.429c2.896,5.942,8.485,10.127,15.005,11.253l56.603,9.83l-0.165,0.159 c51.472,49.773,37.789,36.539,58.605,56.669l31.904,149.698c1.647,7.604,8.357,13.047,16.132,13.047h17.052 c-3.508,4.595-5.682,10.265-5.682,16.485c0,15.076,12.232,27.303,27.3,27.303c15.086,0,27.306-12.227,27.306-27.303 c0-6.22-2.162-11.89-5.669-16.485h41.486c-3.508,4.595-5.682,10.265-5.682,16.485c0,15.076,12.239,27.303,27.306,27.303 c15.086,0,27.3-12.227,27.3-27.303c0-6.22-2.155-11.89-5.663-16.485h17.063c7.763,0,14.492-5.443,16.114-13.047l32.97-154.618 C476.415,277.756,475.19,272.677,472.067,268.814z M412.937,417.313H277.495l-25.917-121.645h187.294L412.937,417.313z" />
</g>
</svg>
Shopping
</Link> */}
</div>
</span>
</div>
Expand Down

0 comments on commit 801003f

Please sign in to comment.