From 8d813fba6c4a1da85f638d5116a191185e920273 Mon Sep 17 00:00:00 2001 From: BettinaHallinger Date: Wed, 20 Apr 2022 10:50:39 +0200 Subject: [PATCH] Fix formatting --- src/Components/buttonPrimary.jsx | 9 +++++++-- src/Components/buttonSecondary.jsx | 9 +++++++-- src/Components/card.jsx | 16 +++++++++------- src/Components/header_1.jsx | 24 +++++++++++++----------- 4 files changed, 36 insertions(+), 22 deletions(-) diff --git a/src/Components/buttonPrimary.jsx b/src/Components/buttonPrimary.jsx index cad67c6..b751d5e 100644 --- a/src/Components/buttonPrimary.jsx +++ b/src/Components/buttonPrimary.jsx @@ -1,7 +1,12 @@ import React from "react"; function ButtonPrimary(props) { - return ; + return ( + + ); } -export default ButtonPrimary; \ No newline at end of file +export default ButtonPrimary; diff --git a/src/Components/buttonSecondary.jsx b/src/Components/buttonSecondary.jsx index 2ce586b..ba6a689 100644 --- a/src/Components/buttonSecondary.jsx +++ b/src/Components/buttonSecondary.jsx @@ -1,7 +1,12 @@ import React from "react"; function ButtonSecondary(props) { - return ; + return ( + + ); } -export default ButtonSecondary; \ No newline at end of file +export default ButtonSecondary; diff --git a/src/Components/card.jsx b/src/Components/card.jsx index e129390..6f699dc 100644 --- a/src/Components/card.jsx +++ b/src/Components/card.jsx @@ -1,15 +1,17 @@ import React from "react"; -import bild from '../paparoy.jpg'; +import bild from "../paparoy.jpg"; import ButtonPrimary from "./buttonPrimary"; function Card(props) { - return (
- Papa Roy -
-
{props.name || "Restaurant"}
+ return ( +
+ Papa Roy +
+
{props.name || "Restaurant"}
+
-
); + ); } -export default Card; \ No newline at end of file +export default Card; diff --git a/src/Components/header_1.jsx b/src/Components/header_1.jsx index f5a45c4..0bc117d 100644 --- a/src/Components/header_1.jsx +++ b/src/Components/header_1.jsx @@ -1,17 +1,19 @@ import React from "react"; -import p_logo_dark from '../pizza_logo_dark.png' -import p_logo_light from '../pizza_logo_light.png' +import p_logo_dark from "../pizza_logo_dark.png"; +import p_logo_light from "../pizza_logo_light.png"; import ButtonSecondary from "./buttonSecondary"; -import ShoppingCart from '../shopping_cart.svg'; +import ShoppingCart from "../shopping_cart.svg"; function Header1() { - return
- Logo -
- - -
-
+ return ( +
+ Logo +
+ + +
+
+ ); } -export default Header1; \ No newline at end of file +export default Header1;