update src/views/About/index.js

temp
mahdi 2 years ago
parent 50aa62e32f
commit 706fff4508
  1. 28
      src/views/About/index.js

@ -1,15 +1,22 @@
import React, { Fragment, useEffect } from "react"; import React, { Fragment, useEffect } from "react";
import _ from "lodash"; import _ from "lodash";
import {connect} from 'react-redux'; import { connect } from "react-redux";
import {publicApi} from '../../redux/actions'; import { publicApi } from "../../redux/actions";
import './index.scss'; import "./index.scss";
//assets //assets
import pic from "./pic.png"; import pic from "./pic.png";
import aboutLg from "./about-lg.png"; import aboutLg from "./about-lg.png";
function About({ fury, advantages, keywords, keywords2, first, setHeaderOptions }) { function About({
fury,
advantages,
keywords,
keywords2,
first,
setHeaderOptions,
}) {
useEffect(() => { useEffect(() => {
setHeaderOptions({ shown: true }); setHeaderOptions({ shown: true });
}, []); }, []);
@ -19,13 +26,6 @@ function About({ fury, advantages, keywords, keywords2, first, setHeaderOptions
<main className="flex flex-col items-center pt-16"> <main className="flex flex-col items-center pt-16">
<header> <header>
<h1>{first.title}</h1> <h1>{first.title}</h1>
<p
style={{
lineHeight: 2,
}}
>
{first.text}
</p>
</header> </header>
<div className="linegr" style={{ width: "100%", height: "4px" }}></div> <div className="linegr" style={{ width: "100%", height: "4px" }}></div>
<div className="about__fury flex"> <div className="about__fury flex">
@ -88,13 +88,11 @@ function About({ fury, advantages, keywords, keywords2, first, setHeaderOptions
); );
} }
const mapStateToProps = (state) => ({ const mapStateToProps = (state) => ({});
});
const mapDispatchToProps = { const mapDispatchToProps = {
setHeaderOptions: publicApi.setHeaderOptions, setHeaderOptions: publicApi.setHeaderOptions,
} };
export default connect(mapStateToProps, mapDispatchToProps)(About); export default connect(mapStateToProps, mapDispatchToProps)(About);

Loading…
Cancel
Save