Skip to content

Commit

Permalink
Ensure component name matches filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Oct 15, 2024
1 parent 36769ce commit 59d7673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/climatemappedafrica/src/components/PageHero/PageHero.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useStyles from "./useStyles";
import RichHeader from "@/climatemappedafrica/components/RichHeader";
import Section from "@/climatemappedafrica/components/Section";

function AboutHero({ background, overline, subtitle, title, ...props }) {
function PageHero({ background, overline, subtitle, title, ...props }) {
const classes = useStyles(props);
let backgroundSx;
if (background?.src?.length) {
Expand Down Expand Up @@ -69,11 +69,11 @@ function AboutHero({ background, overline, subtitle, title, ...props }) {
);
}

AboutHero.propTypes = {
PageHero.propTypes = {
background: PropTypes.shape({}),
overline: PropTypes.string,
subtitle: PropTypes.arrayOf(PropTypes.shape({})),
title: PropTypes.arrayOf(PropTypes.shape({})),
};

export default AboutHero;
export default PageHero;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from "@mui/material";
import PropTypes from "prop-types";
import React from "react";

const Header = React.forwardRef(function Header(props, ref) {
const RichHeader = React.forwardRef(function RichHeader(props, ref) {
const {
OverlineProps,
SubtitleProps,
Expand Down Expand Up @@ -79,10 +79,10 @@ const Header = React.forwardRef(function Header(props, ref) {
);
});

Header.propTypes = {
RichHeader.propTypes = {
className: PropTypes.string,
overline: PropTypes.string,
subtitle: PropTypes.arrayOf(PropTypes.shape({})),
};

export default Header;
export default RichHeader;

0 comments on commit 59d7673

Please sign in to comment.