diff options
author | 2021-01-03 05:47:07 +0300 | |
---|---|---|
committer | 2021-01-03 05:47:07 +0300 | |
commit | d664ddc9b84b25922239e3bbc253b35ea54f2533 (patch) | |
tree | f1892f7e9b0880826b28a503aea312a97b0ea3a2 /src/components/HeaderBar/index.tsx | |
parent | Adds EsLint (diff) |
Fixes Preexisting Linting Issues
Fixes all errors, and most warnings generated by eslint. Most were fixed
by eslint automatically such as indentation and quotes.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/components/HeaderBar/index.tsx')
-rw-r--r-- | src/components/HeaderBar/index.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/components/HeaderBar/index.tsx b/src/components/HeaderBar/index.tsx index b789ddb..dfe3957 100644 --- a/src/components/HeaderBar/index.tsx +++ b/src/components/HeaderBar/index.tsx @@ -16,17 +16,17 @@ width: 100%; transition: height 1s; `; -function HeaderBar({ title }: HeaderBarProps) { - if (!title) { - title = "Python Discord Forms"; - }; +function HeaderBar({ title }: HeaderBarProps): JSX.Element { + if (!title) { + title = "Python Discord Forms"; + } - return <div> - <div> - <Header1 css={headerImageStyles}/> - <Header2 css={headerImageStyles}/> - </div> - <h1 css={css` + return <div> + <div> + <Header1 css={headerImageStyles}/> + <Header2 css={headerImageStyles}/> + </div> + <h1 css={css` font-size: 4vw; margin: 0; margin-top: 30px; @@ -51,9 +51,9 @@ function HeaderBar({ title }: HeaderBarProps) { margin-left: 0; } `}> - {title} - </h1> - </div> + {title} + </h1> + </div>; } export default HeaderBar; |