optimization
This commit was merged in pull request #46.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import React from 'react';
|
||||
import React, { useMemo } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import logo from '../../assets/images/wrenchboard-logo-text.png';
|
||||
import getConfig from './../../Config/config'
|
||||
|
||||
function FooterHomeOne({ className }) {
|
||||
var site = getConfig()[0];
|
||||
var site = useMemo(() => getConfig()[0], []);;
|
||||
let newDate = new Date().getFullYear()
|
||||
|
||||
return (
|
||||
@@ -16,7 +16,7 @@ function FooterHomeOne({ className }) {
|
||||
<div className="footer-about-widget">
|
||||
<div className="logo">
|
||||
<a href="#">
|
||||
<img src={logo} alt="WrenchBoard" />
|
||||
<img src={logo} alt="WrenchBoard" loading='eager' width={300} height={65} />
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user