From f1c9831f58e94940b6f531fa9344b3152681165e Mon Sep 17 00:00:00 2001 From: desmukh Date: Sun, 8 Jan 2023 00:57:25 +0500 Subject: [PATCH] rename h2separator to h1 and expose component --- src/components/{h2-separator.js => heading-separators.js} | 8 +++----- src/pages/index.js | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) rename src/components/{h2-separator.js => heading-separators.js} (90%) diff --git a/src/components/h2-separator.js b/src/components/heading-separators.js similarity index 90% rename from src/components/h2-separator.js rename to src/components/heading-separators.js index faa3d77..202dc07 100644 --- a/src/components/h2-separator.js +++ b/src/components/heading-separators.js @@ -18,7 +18,7 @@ const TerminalDiamond = ({ right }) => ( ) -const H2Separator = ({ title }) => { +export const H1Separator = ({ title, component }) => { return ( @@ -28,7 +28,7 @@ const H2Separator = ({ title }) => { {title} @@ -39,6 +39,4 @@ const H2Separator = ({ title }) => { ) -} - -export default H2Separator \ No newline at end of file +} \ No newline at end of file diff --git a/src/pages/index.js b/src/pages/index.js index c2369ad..102a276 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -6,7 +6,7 @@ import Layout from "../components/layout" import Seo from "../components/seo" import { Box, Button, Link, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Stack, Typography } from "@mui/material" import EastIcon from '@mui/icons-material/East' -import H2Separator from "../components/h2-separator" +import { H1Separator } from "../components/heading-separators" const serviceMenu = [ { label: "Support", path: "/" }, @@ -49,7 +49,7 @@ const BlogIndex = ({ data, location }) => { Autonomic is a co-operative that is owned and run by its workers - + {serviceMenu.map(({ label, path }) => (