From ac675cf1c97963aa3b8122f794c6f78de5d9021b Mon Sep 17 00:00:00 2001 From: Nano3013 Date: Wed, 27 Oct 2021 15:44:28 +0000 Subject: [PATCH] applied prettier --- frontend/src/components/ModalQrBody.js | 22 +++++++++++----------- frontend/src/pages/Home.js | 18 ++++++++---------- frontend/src/pages/Signup.js | 22 +++++----------------- frontend/src/styles/Home.module.scss | 24 +++++++----------------- 4 files changed, 31 insertions(+), 55 deletions(-) diff --git a/frontend/src/components/ModalQrBody.js b/frontend/src/components/ModalQrBody.js index fb6de3e..689afae 100644 --- a/frontend/src/components/ModalQrBody.js +++ b/frontend/src/components/ModalQrBody.js @@ -1,26 +1,26 @@ -import { useQRCode } from "next-qrcode"; -import styles from "../styles/Home.module.scss"; +import { useQRCode } from 'next-qrcode' +import styles from '../styles/Home.module.scss' const ModalQrBody = ({ text }) => { const { inputRef } = useQRCode({ text: text, options: { // type: 'image/jpeg', - level: "M", + level: 'M', margin: 7, scale: 1, width: 250, color: { - dark: "#000000", - light: "#FFFFFF", - }, - }, - }); + dark: '#000000', + light: '#FFFFFF' + } + } + }) return (
- ); -}; + ) +} -export default ModalQrBody; +export default ModalQrBody diff --git a/frontend/src/pages/Home.js b/frontend/src/pages/Home.js index ba7d178..8ce8709 100644 --- a/frontend/src/pages/Home.js +++ b/frontend/src/pages/Home.js @@ -9,15 +9,15 @@ import { ModalContent, ModalHeader, ModalBody, - ModalCloseButton, -} from "@chakra-ui/react"; -import { BsPersonPlus } from "react-icons/bs"; -import { useDisclosure } from "@chakra-ui/hooks"; -import React from "react"; -import ModalQrBody from "../components/ModalQrBody"; + ModalCloseButton +} from '@chakra-ui/react' +import { BsPersonPlus } from 'react-icons/bs' +import { useDisclosure } from '@chakra-ui/hooks' +import React from 'react' +import ModalQrBody from '../components/ModalQrBody' const Home = () => { - const { isOpen, onOpen, onClose } = useDisclosure(); + const { isOpen, onOpen, onClose } = useDisclosure() return (
@@ -45,9 +45,7 @@ const Home = () => { 友達がこのQRコードをスキャンすると、あなたを友達に追加できます。
diff --git a/frontend/src/pages/Signup.js b/frontend/src/pages/Signup.js index 8d40f88..e1d71b7 100644 --- a/frontend/src/pages/Signup.js +++ b/frontend/src/pages/Signup.js @@ -1,26 +1,14 @@ -import styles from "../styles/Signup.module.scss"; -import { Input, Checkbox, Button, Spacer } from "@chakra-ui/react"; +import styles from '../styles/Signup.module.scss' +import { Input, Checkbox, Button, Spacer } from '@chakra-ui/react' const Signup = () => { return (
- - + + Terms and conditions -
diff --git a/frontend/src/styles/Home.module.scss b/frontend/src/styles/Home.module.scss index daf898c..4fb04fd 100644 --- a/frontend/src/styles/Home.module.scss +++ b/frontend/src/styles/Home.module.scss @@ -11,18 +11,8 @@ position: relative; height: 2px; border-width: 0; - background-image: -webkit-linear-gradient( - left, - transparent 0%, - #ffd085 50%, - transparent 100% - ); - background-image: linear-gradient( - 90deg, - transparent 0%, - #fbba40 50%, - transparent 100% - ); + background-image: -webkit-linear-gradient(left, transparent 0%, #ffd085 50%, transparent 100%); + background-image: linear-gradient(90deg, transparent 0%, #fbba40 50%, transparent 100%); } .mask { text-align: center; @@ -50,9 +40,9 @@ border-bottom: 2px black; } } -.qrcodeSentence{ - text-align: center; +.qrcodeSentence { + text-align: center; +} +.qrcode { + margin: 0 auto; } -.qrcode{ - margin: 0 auto; -} \ No newline at end of file