Skip to content

Commit e01a76f

Browse files
committed
Fixed build issue
1 parent e821b64 commit e01a76f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

src/App.js

+14-9
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import './App.css'
33
import Footer from './components/Footer'
44
import ThemeButton from './components/ThemeButton'
55
import useWindowDimensions from './custom-hooks/useWindowDimensions'
6-
// ...
76

8-
const App = () => {
7+
function App() {
98
const minPasswordLength = 6
109
const { height } = useWindowDimensions()
1110

@@ -67,9 +66,12 @@ const App = () => {
6766
<span className="link-title1 title">
6867
<span className={`${form.password.length < minPasswordLength
6968
|| !validateEmail(form.email)
70-
? ''
71-
: 'hover'
72-
}`}>Annoying Submit Button</span>
69+
? ''
70+
: 'hover'
71+
}`}
72+
>
73+
Annoying Submit Button
74+
</span>
7375
{' '}
7476
<span
7577
className={`${emojiState} ${form.password.length < minPasswordLength
@@ -84,9 +86,12 @@ const App = () => {
8486
<span className="link-title2 title">
8587
<span className={`${form.password.length < minPasswordLength
8688
|| !validateEmail(form.email)
87-
? ''
88-
: 'hover'
89-
}`}>Annoying Submit Button</span>
89+
? ''
90+
: 'hover'
91+
}`}
92+
>
93+
Annoying Submit Button
94+
</span>
9095
{' '}
9196
<span
9297
className={`${emojiState} ${form.password.length < minPasswordLength
@@ -204,4 +209,4 @@ const App = () => {
204209
)
205210
}
206211

207-
export default App;
212+
export default App

src/components/Footer/Footer.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function Footer({ theme }) {
77
return dateObj.getFullYear()
88
}, [])
99

10+
/* eslint-disable jsx-a11y/control-has-associated-label */
1011
return (
1112
<footer className={`${theme}-footer`}>
1213
<div className="footer-content">

0 commit comments

Comments
 (0)