tabexseriescomponents 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +22892 -14865
- package/dist/index.esm.js +22897 -14871
- package/dist/index.umd.js +21722 -13696
- package/package.json +1 -1
- package/{srcOLD → src1-10}/Contexts/LanguageContext.jsx +0 -0
- package/{srcOLD → src1-10}/Contexts/ProductsCardsSectionContext.jsx +0 -0
- package/{srcOLD → src1-10}/StylesJS/Customstyles.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -19
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -8
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +45 -72
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -17
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +1 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -11
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +3 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +1 -11
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer1/Footer1.jsx +26 -26
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer2/Footer2.jsx +24 -25
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer3/Footer3.jsx +14 -6
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer4/Footer4.jsx +11 -12
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer5/Footer5.jsx +81 -88
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer6/Footer6.jsx +39 -48
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer7/Footer7.jsx +58 -61
- package/{srcOLD → src1-10}/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +27 -34
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +97 -99
- package/{srcOLD → src1-10}/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +74 -80
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header4/Header4.jsx +77 -95
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header6/Header6.jsx +73 -76
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +93 -137
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +85 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +3 -23
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +116 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Modernheader/Modernheader.jsx +100 -92
- package/{srcOLD → src1-10}/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +110 -98
- package/{srcOLD → src1-10}/TabexComponents/Headers/Subheader/Subheader.jsx +10 -22
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +7 -75
- package/{srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js → src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx} +82 -92
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -0
- package/{srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js → src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx} +34 -74
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -8
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +92 -53
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -0
- package/{srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js → src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx} +110 -40
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Filter/Filter.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/Login.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Policies/Policies.jsx +0 -5
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -50
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -16
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/Signup.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -23
- package/{srcOLD → src1-10}/assets/images/cod.png +0 -0
- package/{srcOLD → src1-10}/assets/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/fawry.png +0 -0
- package/{srcOLD → src1-10}/assets/images/payment.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paymob.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paypal.png +0 -0
- package/{srcOLD → src1-10}/assets/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/assets/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/visa.png +0 -0
- package/{srcOLD → src1-10}/assets/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/button.jsx +0 -0
- package/{srcOLD → src1-10}/index.jsx +6 -2
- package/{srcOLD → src1-10}/styles/Home.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorcycard_fullimage.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_slidebgscaled.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_withshapes.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard_with_circularbg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productccard_with_zoominonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Prouductcard_with_zoomhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard3.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycardwithtext.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_animatedbuttons.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_with_textonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productccard_with_imageontopleft.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/bootstrap.css +68 -73
- package/{srcOLD → src1-10}/styles/general/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/general/editorbardropdown.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/form.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/general.module.css +152 -0
- package/{srcOLD → src1-10}/styles/general/image-gallery.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-accessible-accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-phone-input-2.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/scrollbtn.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/slick.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/tabs.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/workplaceeditor.module.css +0 -0
- package/{srcOLD → src1-10}/styles/globals.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Allinoneheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header7.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header_threesectionslogocentered.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Sideheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/classicheaderstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header4.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header5.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header_contactinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerresturant.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/modernheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/subheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage1.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage_with_topcircle.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Section_with_rightbgcont.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_squarebg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/cart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/login.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/productinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/shop.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/signup.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/staticroutersidenav.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/viewcart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/wishlist.module.css +0 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { useHistory, Link } from 'react-router-dom';
|
|
3
2
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
|
-
// import './dropdown.css';
|
|
5
|
-
// import headerstyles from './headerresturant.module.css';
|
|
6
3
|
import headerstyles from '../../../styles/headers/headerresturant.module.css';
|
|
7
|
-
|
|
8
|
-
// import { LanguageContext } from '../../../LanguageContext';
|
|
9
4
|
import { IKImage } from 'imagekitio-react';
|
|
10
5
|
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
11
|
-
|
|
12
|
-
// import { FetchingContext } from '../../../FetchingContext';
|
|
13
|
-
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
14
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
15
6
|
import { css } from 'glamor';
|
|
16
|
-
// import Subheader from '../Subheader/Subheader';
|
|
17
|
-
// import Headerresponsive from '../Headerresponsive/Headerresponsive';
|
|
18
7
|
import { BiLogOutCircle } from 'react-icons/bi';
|
|
19
8
|
import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
|
|
20
9
|
import { FaRegHeart } from 'react-icons/fa';
|
|
@@ -22,37 +11,18 @@ import { CgShoppingBag } from 'react-icons/cg';
|
|
|
22
11
|
import { BsInfoCircle, BsHandbag, BsBag, BsWhatsapp } from 'react-icons/bs';
|
|
23
12
|
import { AiFillStar } from 'react-icons/ai';
|
|
24
13
|
import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
|
|
25
|
-
// import egyptflag from '../../Generalfiles/images/egyptflag.png';
|
|
26
|
-
// import usflag from '../../Generalfiles/images/usflag.png';
|
|
27
14
|
import { FaFacebookF } from 'react-icons/fa';
|
|
28
15
|
import { AiFillInstagram, AiOutlineLogin, AiOutlineUserAdd, AiOutlineStar, AiOutlineHeart } from 'react-icons/ai';
|
|
29
|
-
|
|
30
|
-
// import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
31
16
|
import egyptflag from '../../../assets/images/egyptflag.png';
|
|
32
17
|
import usflag from '../../../assets/images/usflag.png';
|
|
33
18
|
import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
|
|
34
19
|
import Subheader from '../Subheader/Subheader.jsx';
|
|
35
20
|
|
|
36
21
|
const HeaderRestaurant = (props) => {
|
|
37
|
-
// let history = useHistory();
|
|
38
|
-
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
39
|
-
// const { fetch_inst_tabex_websitetemplatesQueryContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
40
|
-
// const {
|
|
41
|
-
// templateproperties_context,
|
|
42
|
-
// setsidecartnavshowcontext,
|
|
43
|
-
// fetchAuthorizationQueryContext,
|
|
44
|
-
// LogoutMutationContext,
|
|
45
|
-
// fetchcustomercartQueryContext,
|
|
46
|
-
// favoriteprojectscountContext,
|
|
47
|
-
// setSearchHeaderInputContext,
|
|
48
|
-
// } = useContext(FetchingContext);
|
|
49
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
50
22
|
const [sectionproperties, setsectionproperties] = useState('');
|
|
51
|
-
|
|
52
23
|
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
53
24
|
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
54
25
|
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
55
|
-
const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
56
26
|
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
57
27
|
const lang = props.actions.lang;
|
|
58
28
|
const langdetect = props.actions.langdetect;
|
|
@@ -64,7 +34,6 @@ const HeaderRestaurant = (props) => {
|
|
|
64
34
|
const routingcountext = props.actions.routingcountext;
|
|
65
35
|
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
66
36
|
const actions = props.actions;
|
|
67
|
-
// const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
|
|
68
37
|
useEffect(() => {
|
|
69
38
|
var secpropobj = {};
|
|
70
39
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -74,13 +43,11 @@ const HeaderRestaurant = (props) => {
|
|
|
74
43
|
});
|
|
75
44
|
}
|
|
76
45
|
});
|
|
77
|
-
|
|
78
46
|
if (Object.keys(secpropobj).length === 0) {
|
|
79
47
|
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
80
48
|
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
81
49
|
});
|
|
82
50
|
}
|
|
83
|
-
|
|
84
51
|
setsectionproperties({ ...secpropobj });
|
|
85
52
|
}, [StatePagePropertiesContext]);
|
|
86
53
|
const header_cssstyles = {
|
|
@@ -322,12 +289,12 @@ const HeaderRestaurant = (props) => {
|
|
|
322
289
|
}
|
|
323
290
|
}, [templateproperties_context]);
|
|
324
291
|
return (
|
|
325
|
-
<div
|
|
326
|
-
<div
|
|
327
|
-
<div
|
|
328
|
-
<div
|
|
292
|
+
<div className={' row ml-0 mr-0 w-100 d-flex justify-content-center position-md-relative '} style={{ position: sectionproperties.headerstyles_position }}>
|
|
293
|
+
<div className="col-lg-12 p-0">
|
|
294
|
+
<div className={`${headerstyles.header_innercontainer} ${header_cssstyles.header_innercontainer}` + ' row m-0 w-100 d-flex d-md-none align-items-center '}>
|
|
295
|
+
<div className="col-lg-4 p-0 d-flex align-items-center">
|
|
329
296
|
<div
|
|
330
|
-
|
|
297
|
+
className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
|
|
331
298
|
style={{ cursor: 'pointer' }}
|
|
332
299
|
onClick={() => {
|
|
333
300
|
routingcountext('home');
|
|
@@ -344,8 +311,8 @@ const HeaderRestaurant = (props) => {
|
|
|
344
311
|
/>
|
|
345
312
|
</div>
|
|
346
313
|
</div>
|
|
347
|
-
<div
|
|
348
|
-
<nav
|
|
314
|
+
<div className="col-lg-4 p-0 d-flex align-items-center justify-content-center">
|
|
315
|
+
<nav className={headerstyles.navbar}>
|
|
349
316
|
<ul>
|
|
350
317
|
{templatepropcontext.pagesnprop.map((item, index) => {
|
|
351
318
|
var activeclass = '';
|
|
@@ -356,14 +323,14 @@ const HeaderRestaurant = (props) => {
|
|
|
356
323
|
|
|
357
324
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
358
325
|
return (
|
|
359
|
-
<li
|
|
326
|
+
<li className="allcentered" style={{ flex: 1, paddingLeft: '25px', paddingRight: '25px' }}>
|
|
360
327
|
<div
|
|
361
328
|
onClick={() => {
|
|
362
329
|
routingcountext(item.navigationroute, false, '');
|
|
363
330
|
}}
|
|
364
331
|
>
|
|
365
|
-
<div
|
|
366
|
-
<span
|
|
332
|
+
<div className={`${headerstyles.navbar_item} ${activeclass}`}>
|
|
333
|
+
<span className={`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text}`}>
|
|
367
334
|
{langdetect == 'en' ? item.pagename : item.pagename_ar}
|
|
368
335
|
</span>
|
|
369
336
|
</div>
|
|
@@ -374,19 +341,8 @@ const HeaderRestaurant = (props) => {
|
|
|
374
341
|
})}
|
|
375
342
|
</ul>
|
|
376
343
|
</nav>
|
|
377
|
-
{sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
|
|
378
|
-
<Subheader
|
|
379
|
-
sectionpropertiesprops={sectionproperties}
|
|
380
|
-
subheaderpropertiesprops={{
|
|
381
|
-
subheaderpositionprops: 'in nav',
|
|
382
|
-
paddingLeftprops: '25px',
|
|
383
|
-
paddingRightprops: '25px',
|
|
384
|
-
}}
|
|
385
|
-
actions={actions}
|
|
386
|
-
/>
|
|
387
|
-
)}
|
|
388
344
|
</div>
|
|
389
|
-
<div
|
|
345
|
+
<div className="col-lg-4 p-0 d-flex align-items-center justify-content-end">
|
|
390
346
|
<Dropdown
|
|
391
347
|
style={{
|
|
392
348
|
// (authdetailsContext.loggedin == true ? '30px' : '28px') : 0,
|
|
@@ -396,30 +352,30 @@ const HeaderRestaurant = (props) => {
|
|
|
396
352
|
}}
|
|
397
353
|
>
|
|
398
354
|
<Dropdown.Toggle>
|
|
399
|
-
<div
|
|
355
|
+
<div className={' d-flex align-items-center justify-content-center '}>
|
|
400
356
|
{!authdetailsContext.loggedin && (
|
|
401
|
-
<span
|
|
357
|
+
<span className={`${header_cssstyles.user_btn}` + ' d-flex justify-content-center align-items-center '}>
|
|
402
358
|
<FiUser size={sectionproperties.userBtniconfontsize} />
|
|
403
359
|
</span>
|
|
404
360
|
)}
|
|
405
361
|
{authdetailsContext.loggedin && (
|
|
406
|
-
<div
|
|
407
|
-
<div
|
|
408
|
-
<i
|
|
362
|
+
<div className={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
|
|
363
|
+
<div className={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
|
|
364
|
+
<i className={' h-100 allcentered '}>
|
|
409
365
|
<FiUser size={sectionproperties.loggedinusericonfontsize} />
|
|
410
366
|
</i>
|
|
411
367
|
</div>
|
|
412
368
|
<div
|
|
413
|
-
|
|
369
|
+
className="m-0 p-0 loggedinuserbtn flex-column"
|
|
414
370
|
style={{
|
|
415
371
|
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
416
372
|
}}
|
|
417
373
|
>
|
|
418
|
-
<p
|
|
374
|
+
<p className={header_cssstyles.greetingstyles + ' m-0 p-0 '}>
|
|
419
375
|
{lang.hello}
|
|
420
376
|
{langdetect == 'en' ? ',' : '،'}
|
|
421
377
|
</p>
|
|
422
|
-
<p
|
|
378
|
+
<p className={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '}>{authdetailsContext.customerinfo.name}</p>
|
|
423
379
|
</div>
|
|
424
380
|
</div>
|
|
425
381
|
)}
|
|
@@ -432,9 +388,9 @@ const HeaderRestaurant = (props) => {
|
|
|
432
388
|
routingcountext(StaticPagesLinksContext.Login);
|
|
433
389
|
}}
|
|
434
390
|
>
|
|
435
|
-
<div
|
|
436
|
-
<p
|
|
437
|
-
<AiOutlineLogin
|
|
391
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
392
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
393
|
+
<AiOutlineLogin className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
438
394
|
<span>{lang.login}</span>
|
|
439
395
|
</p>
|
|
440
396
|
</div>
|
|
@@ -445,10 +401,10 @@ const HeaderRestaurant = (props) => {
|
|
|
445
401
|
routingcountext(StaticPagesLinksContext.Signup);
|
|
446
402
|
}}
|
|
447
403
|
>
|
|
448
|
-
<div
|
|
449
|
-
<p
|
|
450
|
-
<AiOutlineUserAdd
|
|
451
|
-
<span
|
|
404
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
405
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
406
|
+
<AiOutlineUserAdd className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
407
|
+
<span className="text-transform-none">{lang.signup}</span>
|
|
452
408
|
</p>
|
|
453
409
|
</div>
|
|
454
410
|
</Dropdown.Item>
|
|
@@ -461,14 +417,14 @@ const HeaderRestaurant = (props) => {
|
|
|
461
417
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
462
418
|
}}
|
|
463
419
|
>
|
|
464
|
-
<div
|
|
465
|
-
<p
|
|
466
|
-
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag
|
|
467
|
-
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag
|
|
468
|
-
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag
|
|
469
|
-
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag
|
|
470
|
-
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart
|
|
471
|
-
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart
|
|
420
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
421
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
422
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
423
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
424
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
425
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
426
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
427
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
472
428
|
<span>{lang.orderhistory}</span>
|
|
473
429
|
</p>
|
|
474
430
|
</div>
|
|
@@ -479,10 +435,10 @@ const HeaderRestaurant = (props) => {
|
|
|
479
435
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
480
436
|
}}
|
|
481
437
|
>
|
|
482
|
-
<div
|
|
483
|
-
<p
|
|
484
|
-
{sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart
|
|
485
|
-
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar
|
|
438
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
439
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
440
|
+
{sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
441
|
+
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
486
442
|
<span>{lang.wishlist}</span>
|
|
487
443
|
</p>
|
|
488
444
|
</div>
|
|
@@ -493,9 +449,9 @@ const HeaderRestaurant = (props) => {
|
|
|
493
449
|
routingcountext(StaticPagesLinksContext.Policies);
|
|
494
450
|
}}
|
|
495
451
|
>
|
|
496
|
-
<div
|
|
497
|
-
<p
|
|
498
|
-
<MdOutlinePolicy
|
|
452
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
453
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
454
|
+
<MdOutlinePolicy className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
499
455
|
<span>{lang.policies}</span>
|
|
500
456
|
</p>
|
|
501
457
|
</div>
|
|
@@ -506,9 +462,9 @@ const HeaderRestaurant = (props) => {
|
|
|
506
462
|
LogoutMutationContext.mutate();
|
|
507
463
|
}}
|
|
508
464
|
>
|
|
509
|
-
<div
|
|
510
|
-
<p
|
|
511
|
-
<BiLogOutCircle
|
|
465
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
466
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
467
|
+
<BiLogOutCircle className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
512
468
|
<span>{lang.logout}</span>
|
|
513
469
|
</p>
|
|
514
470
|
</div>
|
|
@@ -518,13 +474,13 @@ const HeaderRestaurant = (props) => {
|
|
|
518
474
|
</Dropdown>
|
|
519
475
|
{sectionproperties.favBtnShow == 'Show' && (
|
|
520
476
|
<div
|
|
521
|
-
|
|
477
|
+
className={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center '}
|
|
522
478
|
onClick={() => {
|
|
523
479
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
524
480
|
}}
|
|
525
481
|
>
|
|
526
482
|
<span style={{ position: 'relative' }}>
|
|
527
|
-
<i
|
|
483
|
+
<i className={' h-100 d-flex align-items-center '}>
|
|
528
484
|
{sectionproperties.faviconshape == 'Heart Shape' && (
|
|
529
485
|
<FaRegHeart
|
|
530
486
|
style={{
|
|
@@ -541,7 +497,7 @@ const HeaderRestaurant = (props) => {
|
|
|
541
497
|
)}
|
|
542
498
|
</i>
|
|
543
499
|
<div
|
|
544
|
-
|
|
500
|
+
className={
|
|
545
501
|
`${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}` +
|
|
546
502
|
' d-flex justify-content-center text-center '
|
|
547
503
|
}
|
|
@@ -552,7 +508,7 @@ const HeaderRestaurant = (props) => {
|
|
|
552
508
|
</div>
|
|
553
509
|
)}
|
|
554
510
|
<div
|
|
555
|
-
|
|
511
|
+
className={
|
|
556
512
|
!authdetailsContext.loggedin
|
|
557
513
|
? langdetect == 'en'
|
|
558
514
|
? `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered ml-3 mr-4 '
|
|
@@ -568,12 +524,12 @@ const HeaderRestaurant = (props) => {
|
|
|
568
524
|
}}
|
|
569
525
|
>
|
|
570
526
|
<span style={{ position: 'relative' }}>
|
|
571
|
-
<i
|
|
572
|
-
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag
|
|
573
|
-
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag
|
|
574
|
-
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag
|
|
575
|
-
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag
|
|
576
|
-
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart
|
|
527
|
+
<i className={' allcentered '}>
|
|
528
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
529
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
530
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
531
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
532
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
577
533
|
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
578
534
|
</i>
|
|
579
535
|
<div
|
|
@@ -593,10 +549,10 @@ const HeaderRestaurant = (props) => {
|
|
|
593
549
|
</div>
|
|
594
550
|
</span>
|
|
595
551
|
</div>
|
|
596
|
-
<div
|
|
552
|
+
<div className={langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'}>
|
|
597
553
|
<Dropdown>
|
|
598
554
|
<Dropdown.Toggle>
|
|
599
|
-
<i
|
|
555
|
+
<i className={header_cssstyles.infoiconcontainer + ' allcentered '}>
|
|
600
556
|
<BsInfoCircle size={sectionproperties.icontextfontsize} />
|
|
601
557
|
</i>
|
|
602
558
|
</Dropdown.Toggle>
|
|
@@ -613,53 +569,53 @@ const HeaderRestaurant = (props) => {
|
|
|
613
569
|
</Dropdown.Header>
|
|
614
570
|
<Dropdown.Divider />
|
|
615
571
|
<Dropdown.Item>
|
|
616
|
-
<div
|
|
617
|
-
<div
|
|
618
|
-
<p
|
|
572
|
+
<div className="row m-0 w-100">
|
|
573
|
+
<div className="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
574
|
+
<p className={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.address}:</p>
|
|
619
575
|
</div>
|
|
620
|
-
<div
|
|
621
|
-
<p
|
|
576
|
+
<div className="col-lg-9 d-flex align-items-center justify-content-start">
|
|
577
|
+
<p className={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.address_en}</p>
|
|
622
578
|
</div>
|
|
623
579
|
</div>
|
|
624
580
|
</Dropdown.Item>
|
|
625
581
|
<Dropdown.Divider />
|
|
626
582
|
<Dropdown.Item>
|
|
627
|
-
<div
|
|
628
|
-
<div
|
|
629
|
-
<p
|
|
583
|
+
<div className="row m-0 w-100">
|
|
584
|
+
<div className="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
585
|
+
<p className={header_cssstyles.informationtitle + ' p-0 m-0 '}>{langdetect == 'en' ? 'Phone' : 'التليفون'}:</p>
|
|
630
586
|
</div>
|
|
631
|
-
<div
|
|
632
|
-
<p
|
|
587
|
+
<div className="col-lg-9 d-flex align-items-center justify-content-start">
|
|
588
|
+
<p className={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.contactinfo.mobile}</p>
|
|
633
589
|
</div>
|
|
634
590
|
</div>
|
|
635
591
|
</Dropdown.Item>
|
|
636
592
|
<Dropdown.Divider />
|
|
637
593
|
<Dropdown.Item>
|
|
638
|
-
<div
|
|
639
|
-
<div
|
|
640
|
-
<p
|
|
594
|
+
<div className="row m-0 w-100">
|
|
595
|
+
<div className="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
596
|
+
<p className={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.email}:</p>
|
|
641
597
|
</div>
|
|
642
|
-
<div
|
|
643
|
-
<p
|
|
598
|
+
<div className="col-lg-9 d-flex align-items-center justify-content-start">
|
|
599
|
+
<p className={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.contactinfo.email}</p>
|
|
644
600
|
</div>
|
|
645
601
|
</div>
|
|
646
602
|
</Dropdown.Item>
|
|
647
603
|
<Dropdown.Divider />
|
|
648
604
|
<Dropdown.Item>
|
|
649
|
-
<div
|
|
650
|
-
<div
|
|
605
|
+
<div className="col-lg-12 col-sm-12 mb-sm-2 p-3 d-flex justify-content-center">
|
|
606
|
+
<div className=" col-lg-12 d-flex flex-row align-items-center justify-content-center ">
|
|
651
607
|
{sectionproperties.fbbtn_show == 'Show' && (
|
|
652
|
-
<div
|
|
608
|
+
<div className={`${header_cssstyles.facebook_btn}` + ' d-flex align-items-center justify-content-center '}>
|
|
653
609
|
<FaFacebookF size={sectionproperties.facebkbtnniconfontsize} />
|
|
654
610
|
</div>
|
|
655
611
|
)}
|
|
656
612
|
{sectionproperties.instbtn_show == 'Show' && (
|
|
657
|
-
<div
|
|
613
|
+
<div className={`${header_cssstyles.instgram_btn}` + ' d-flex align-items-center justify-content-center ml-3 mr-3 '}>
|
|
658
614
|
<AiFillInstagram size={sectionproperties.instgrambtniconfontsize} />
|
|
659
615
|
</div>
|
|
660
616
|
)}
|
|
661
617
|
{sectionproperties.youtbtn_show == 'Show' && (
|
|
662
|
-
<div
|
|
618
|
+
<div className={`${header_cssstyles.youtube_btn}` + ' d-flex align-items-center justify-content-center '}>
|
|
663
619
|
<BsWhatsapp size={sectionproperties.youtubebtniconfontsize} />
|
|
664
620
|
</div>
|
|
665
621
|
)}
|
|
@@ -669,7 +625,7 @@ const HeaderRestaurant = (props) => {
|
|
|
669
625
|
</Dropdown.Menu>
|
|
670
626
|
</Dropdown>
|
|
671
627
|
</div>
|
|
672
|
-
<div
|
|
628
|
+
<div className={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
|
|
673
629
|
<Dropdown
|
|
674
630
|
style={{
|
|
675
631
|
marginLeft: langdetect == 'en' ? '25px' : 0,
|
|
@@ -677,19 +633,19 @@ const HeaderRestaurant = (props) => {
|
|
|
677
633
|
}}
|
|
678
634
|
>
|
|
679
635
|
<Dropdown.Toggle>
|
|
680
|
-
<li
|
|
636
|
+
<li className={' d-flex align-items-center justify-content-center '}>
|
|
681
637
|
{langdetect == 'en' && (
|
|
682
|
-
<div
|
|
638
|
+
<div className={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
|
|
683
639
|
<img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
684
|
-
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }}
|
|
685
|
-
<p
|
|
640
|
+
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} className="ml-2 mr-2"></div>
|
|
641
|
+
<p className="m-0 p-0">ع</p>
|
|
686
642
|
</div>
|
|
687
643
|
)}
|
|
688
644
|
{langdetect == 'ar' && (
|
|
689
|
-
<div
|
|
645
|
+
<div className={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
|
|
690
646
|
<img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
691
|
-
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }}
|
|
692
|
-
<p
|
|
647
|
+
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} className="ml-2 mr-2"></div>
|
|
648
|
+
<p className="m-0 p-0">En</p>
|
|
693
649
|
</div>
|
|
694
650
|
)}
|
|
695
651
|
</li>
|
|
@@ -700,10 +656,10 @@ const HeaderRestaurant = (props) => {
|
|
|
700
656
|
setlang('ar');
|
|
701
657
|
}}
|
|
702
658
|
>
|
|
703
|
-
<div
|
|
704
|
-
<p
|
|
659
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
660
|
+
<p className={' d-flex align-items-center m-0 p-0 '}>
|
|
705
661
|
<img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
706
|
-
<span
|
|
662
|
+
<span className="ml-2 mr-2">{lang.arabic}</span>
|
|
707
663
|
</p>
|
|
708
664
|
</div>
|
|
709
665
|
</Dropdown.Item>
|
|
@@ -714,7 +670,7 @@ const HeaderRestaurant = (props) => {
|
|
|
714
670
|
}}
|
|
715
671
|
>
|
|
716
672
|
<span
|
|
717
|
-
|
|
673
|
+
className="d-flex align-items-center justify-content-center"
|
|
718
674
|
style={{
|
|
719
675
|
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
720
676
|
fontWeight: sectionproperties.dropdown_fontweight,
|
|
@@ -722,28 +678,28 @@ const HeaderRestaurant = (props) => {
|
|
|
722
678
|
}}
|
|
723
679
|
>
|
|
724
680
|
<img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
725
|
-
<span
|
|
681
|
+
<span className="ml-2 mr-2">{lang.english}</span>
|
|
726
682
|
</span>
|
|
727
683
|
</Dropdown.Item>
|
|
728
684
|
</Dropdown.Menu>
|
|
729
685
|
</Dropdown>
|
|
730
686
|
</div>
|
|
731
687
|
</div>
|
|
732
|
-
<div
|
|
733
|
-
{sectionproperties.showhidesubheader == 'Show' &&
|
|
688
|
+
<div className="col-lg-12 p-0">
|
|
689
|
+
{sectionproperties.showhidesubheader == 'Show' && (
|
|
734
690
|
<Subheader
|
|
691
|
+
actions={actions}
|
|
735
692
|
sectionpropertiesprops={sectionproperties}
|
|
736
693
|
subheaderpropertiesprops={{
|
|
737
694
|
subheaderpositionprops: 'Full Width',
|
|
738
695
|
paddingLeftprops: '25px',
|
|
739
696
|
paddingRightprops: '25px',
|
|
740
697
|
}}
|
|
741
|
-
actions={actions}
|
|
742
698
|
/>
|
|
743
699
|
)}
|
|
744
700
|
</div>
|
|
745
701
|
</div>
|
|
746
|
-
<div
|
|
702
|
+
<div className="col-lg-12 p-0">
|
|
747
703
|
<Headerresponsive actions={actions} sectionpropertiesprops={sectionproperties} />
|
|
748
704
|
</div>
|
|
749
705
|
</div>
|