Skip to content

Commit

Permalink
react reveal updated
Browse files Browse the repository at this point in the history
  • Loading branch information
masanov3167 committed Jan 28, 2023
1 parent ede4b6a commit 10ab7e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/animateCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from "react";
import { Link } from "react-router-dom";
import Fade from 'react-reveal/Fade';

const AnimateCard = ({animClass, animTime,refLink, refTitle, refId, key, mainTitle}) =>{
const AnimateCard = ({refLink, refTitle, refId, key, mainTitle}) =>{
return(
<Fade right>
<Link className={`facultetTitle `} to={`/${refLink}/${refTitle.toLowerCase().split(' ').map(str => str.split('').filter(char => /[a-zA-Z]/.test(char)).join('')).join('-')}-${refId}`} key={key}>
<Link className='facultetTitle' to={`/${refLink}/${refTitle.toLowerCase().split(' ').map(str => str.split('').filter(char => /[a-zA-Z]/.test(char)).join('')).join('-')}-${refId}`} key={key}>
<h3 className="fakultet-inner">{mainTitle}</h3>
</Link>
</Fade>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/structure/BolimMarkaz/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const BolimMarkaz = () => {
{
bolim.isFetched && bolim.data ? (
bolim.data.map((item, index) => (
<AnimateCard animClass='fadeInRightBig' animTime='0.3s' refLink='bolimlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
<AnimateCard refLink='bolimlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
))
):bolim.error ?(
<></>
Expand Down Expand Up @@ -83,7 +83,7 @@ const BolimMarkaz = () => {
{
markaz.isFetched && markaz.data ? (
markaz.data.map((item, index) => (
<AnimateCard animClass='fadeInRightBig' animTime='0.3s' refLink='markazlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
<AnimateCard refLink='markazlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
))
): markaz.error ?(
<></>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/structure/Kafedra/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const KafedraComponent = () => {
{
rektorat.isFetched && rektorat.data ? (
rektorat.data.map((item, index) => (
<AnimateCard animClass='fadeInRightBig' animTime='0.3s' refLink='kafedralar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
<AnimateCard refLink='kafedralar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
))
): rektorat.error ?(
<></>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/structure/fakultet/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const FacultetComponent = () => {
{
facultet.isFetched && facultet.data ? (
facultet.data.map((item, index) => (
<AnimateCard animClass='fadeInLeftBig' animTime='0.3s' refLink='fakultetlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
<AnimateCard refLink='fakultetlar' refTitle={item?.title_uz} refId={item._id} key={index} mainTitle={item[`title_${lang}`]} />
))
): facultet.error ? (
<div style={textSytles(30,800)}>Xatolik :(</div>
Expand Down

0 comments on commit 10ab7e2

Please sign in to comment.