Fix links
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import logo from '../../assets/images/logo.png';
|
||||
import logo from '../../assets/images/wrenchboard.png';
|
||||
import getConfig from './../../Config/config'
|
||||
|
||||
|
||||
function Drawer({ drawer, action }) {
|
||||
var site = getConfig()[0];
|
||||
|
||||
const [itemSize, setSize] = useState('0px');
|
||||
const [item, setItem] = useState('home');
|
||||
const handler = (e, value) => {
|
||||
@@ -30,7 +34,7 @@ function Drawer({ drawer, action }) {
|
||||
</a>
|
||||
</div>
|
||||
<div className="offcanvas-brand text-center mb-40">
|
||||
<img src={logo} alt="" />
|
||||
<img src={logo} alt="WrechBoard" />
|
||||
</div>
|
||||
<div id="menu" className="text-left ">
|
||||
<ul className="offcanvas_main_menu">
|
||||
@@ -39,21 +43,9 @@ function Drawer({ drawer, action }) {
|
||||
id="home"
|
||||
className="menu-item-has-children active"
|
||||
>
|
||||
<span className="menu-expand">
|
||||
<i className="fa fa-angle-down"></i>
|
||||
</span>
|
||||
<a href="#">Home</a>
|
||||
<ul
|
||||
className="sub-menu"
|
||||
style={{
|
||||
height: item === 'home' ? itemSize : '0px',
|
||||
}}
|
||||
>
|
||||
<li>
|
||||
<Link to="/">Home 1</Link>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<a href="/">Home</a>
|
||||
|
||||
</li>
|
||||
<li
|
||||
onClick={(e) => handler(e, 'service')}
|
||||
@@ -62,53 +54,12 @@ function Drawer({ drawer, action }) {
|
||||
>
|
||||
<Link to="/service">Service</Link>
|
||||
</li>
|
||||
<li
|
||||
onClick={(e) => handler(e, 'pages')}
|
||||
id="pages"
|
||||
className="menu-item-has-children active"
|
||||
>
|
||||
<span className="menu-expand">
|
||||
<i className="fa fa-angle-down"></i>
|
||||
</span>
|
||||
<a href="#">Pages</a>
|
||||
<ul
|
||||
className="sub-menu"
|
||||
style={{
|
||||
height: item === 'pages' ? itemSize : '0px',
|
||||
}}
|
||||
>
|
||||
<li>
|
||||
<li>
|
||||
<Link to="/about-us">About Us</Link>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<Link to="/error">Error</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li
|
||||
onClick={(e) => handler(e, 'news')}
|
||||
id="news"
|
||||
className="menu-item-has-children active"
|
||||
>
|
||||
<span className="menu-expand">
|
||||
<i className="fa fa-angle-down"></i>
|
||||
</span>
|
||||
<a href="#">News</a>
|
||||
<ul
|
||||
className="sub-menu"
|
||||
style={{
|
||||
height: item === 'news' ? itemSize : '0px',
|
||||
}}
|
||||
>
|
||||
<li>
|
||||
<Link to="/news">news page</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/news/single-news">Single News</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li
|
||||
onClick={(e) => handler(e, 'contact')}
|
||||
id="contact"
|
||||
@@ -121,25 +72,16 @@ function Drawer({ drawer, action }) {
|
||||
<div className="offcanvas-social">
|
||||
<ul className="text-center">
|
||||
<li>
|
||||
<a href="$">
|
||||
<a href={site.facebook_link} >
|
||||
<i className="fab fa-facebook-f"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="$">
|
||||
<a href={site.twitter_link}>
|
||||
<i className="fab fa-twitter"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="$">
|
||||
<i className="fab fa-instagram"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="$">
|
||||
<i className="fab fa-dribbble"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div className="footer-widget-info">
|
||||
@@ -147,18 +89,18 @@ function Drawer({ drawer, action }) {
|
||||
<li>
|
||||
<a href="#">
|
||||
<i className="fal fa-envelope"></i>{' '}
|
||||
support@appie.com
|
||||
{site.support_email}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i className="fal fa-phone"></i> +(642) 342 762 44
|
||||
<i className="fal fa-phone"></i> {site.support_phone}
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i className="fal fa-map-marker-alt"></i> 442 Belle
|
||||
Terre St Floor 7, San Francisco, AV 4206
|
||||
<i className="fal fa-map-marker-alt"></i>
|
||||
{site.support_us_address}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -173,3 +115,4 @@ function Drawer({ drawer, action }) {
|
||||
}
|
||||
|
||||
export default Drawer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user