mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-25 09:24:21 +00:00
🧹 Remove unused MainTitle component
This commit is contained in:
parent
9eb05cd0fb
commit
cdd504a728
2 changed files with 2 additions and 21 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue