From 9ff2f37a42b122d253a2f0dcaea10197540beaa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=A0imon=C3=ADk?= Date: Wed, 23 Oct 2024 13:16:23 +0200 Subject: [PATCH] feat: update partners section with msd logo --- .../PartnersSection/PartnersSection.jsx | 34 +++++++----------- data/homePageData.js | 2 ++ data/partnersData.js | 29 +++++++++++++++ pages/index.js | 3 +- public/images/partners/msd.webp | Bin 0 -> 111908 bytes 5 files changed, 46 insertions(+), 22 deletions(-) create mode 100644 data/partnersData.js create mode 100644 public/images/partners/msd.webp diff --git a/components/PartnersSection/PartnersSection.jsx b/components/PartnersSection/PartnersSection.jsx index 1cd383a..f0141d8 100644 --- a/components/PartnersSection/PartnersSection.jsx +++ b/components/PartnersSection/PartnersSection.jsx @@ -1,6 +1,7 @@ import { Button, makeStyles } from '@material-ui/core'; import Box from '@material-ui/core/Box'; import React from 'react'; +import PropTypes from 'prop-types'; import { PartnersIcon } from '../icons/icons'; import InfoText from '../common/InfoText/InfoText'; @@ -53,33 +54,20 @@ const useStyles = makeStyles(({ spacing, breakpoints }) => ({ }, })); -export const PartnersSection = () => { +export const PartnersSection = ({ partners = [] }) => { const classes = useStyles(); return ( } title="Partneři" /> - - Grow with google - - - SmartEmailing - - - Dotekománie - - - Google For Education - + {partners.map(function (partner, i) { + return ( + + {partner.name} + + ); + })}