optimization

This commit was merged in pull request #46.
This commit is contained in:
2023-11-03 03:43:26 -07:00
parent ce0bb90b51
commit 23bbad6552
10 changed files with 253 additions and 331 deletions
+3 -3
View File
@@ -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>