diff --git a/src/components/aboutComponents/AboutHero.jsx b/src/components/aboutComponents/AboutHero.jsx index b9630fc..e19af87 100644 --- a/src/components/aboutComponents/AboutHero.jsx +++ b/src/components/aboutComponents/AboutHero.jsx @@ -7,10 +7,25 @@ import Loader from '../Loader'; import { useSelector } from 'react-redux'; const AboutHero = () => { + +const [image, setimage] = useState('') +const [para, setpara] = useState('') +const [heading, setheading] = useState('') + let about = useSelector( state => state.about.aboutPage, ); + + useEffect(()=>{ + + if(about){ + setimage(about.AboutHero.image) + setpara(about.AboutHero.paragraph) + setheading(about.AboutHero.Heading) + } + + },[about]) return !about ? ( ) : ( @@ -18,26 +33,16 @@ const AboutHero = () => {

- Let’s learn about new - Knowledge and abitlites + {heading}

- Welcome to [Institute Name], - an institution dedicated to - fostering innovation, - knowledge, and personal - growth. Our mission is to - shape tomorrow’s leaders by - offering exceptional - educational opportunities - and encouraging intellectual - exploration. + {para }