1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-21 23:44:22 +00:00

🧹 Remove unused MainTitle component

This commit is contained in:
Steffo 2021-03-24 16:04:52 +01:00
parent 9eb05cd0fb
commit cdd504a728
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 2 additions and 21 deletions

View file

@ -1,23 +1,21 @@
import React, {useState} from "react";
import {Bluelib, Main} from "bluelib/lib/components";
import {BaseLink, Bluelib, Main, Title} from "bluelib/lib/components"
import {Switch, Route} from "react-router-dom";
import Home from "./routes/Home";
import Error404 from "./routes/Error404";
import Gestinfo from "./routes/Gestinfo";
import style from "./App.module.css";
import MainTitle from "./components/MainTitle";
import Footer from "./components/Footer";
import Fisica from "./routes/Fisica"
export default function App() {
const [skin, setSkin] = useState("rygblue");
const [subtitle, setSubtitle] = useState(null);
return (
<Bluelib skin={skin} className={style.app}>
<MainTitle subtitle={subtitle}/>
<Title size={"xxl"}><BaseLink href={"/"}>Unisteffo</BaseLink></Title>
<Main>
<Switch>

View file

@ -1,17 +0,0 @@
import React from "react";
import {BaseLink, Title} from "bluelib/lib/components";
import PropTypes from "prop-types";
export default function MainTitle() {
return (
<hgroup>
<Title size={"xxl"}><BaseLink href={"/"}>Unisteffo</BaseLink></Title>
</hgroup>
)
}
MainTitle.propTypes = {
subtitle: PropTypes.node
}