File tree 2 files changed +15
-9
lines changed
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,8 @@ import './App.css'
3
3
import Footer from './components/Footer'
4
4
import ThemeButton from './components/ThemeButton'
5
5
import useWindowDimensions from './custom-hooks/useWindowDimensions'
6
- // ...
7
6
8
- const App = ( ) => {
7
+ function App ( ) {
9
8
const minPasswordLength = 6
10
9
const { height } = useWindowDimensions ( )
11
10
@@ -67,9 +66,12 @@ const App = () => {
67
66
< span className = "link-title1 title" >
68
67
< span className = { `${ form . password . length < minPasswordLength
69
68
|| ! validateEmail ( form . email )
70
- ? ''
71
- : 'hover'
72
- } `} > Annoying Submit Button</ span >
69
+ ? ''
70
+ : 'hover'
71
+ } `}
72
+ >
73
+ Annoying Submit Button
74
+ </ span >
73
75
{ ' ' }
74
76
< span
75
77
className = { `${ emojiState } ${ form . password . length < minPasswordLength
@@ -84,9 +86,12 @@ const App = () => {
84
86
< span className = "link-title2 title" >
85
87
< span className = { `${ form . password . length < minPasswordLength
86
88
|| ! validateEmail ( form . email )
87
- ? ''
88
- : 'hover'
89
- } `} > Annoying Submit Button</ span >
89
+ ? ''
90
+ : 'hover'
91
+ } `}
92
+ >
93
+ Annoying Submit Button
94
+ </ span >
90
95
{ ' ' }
91
96
< span
92
97
className = { `${ emojiState } ${ form . password . length < minPasswordLength
@@ -204,4 +209,4 @@ const App = () => {
204
209
)
205
210
}
206
211
207
- export default App ;
212
+ export default App
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function Footer({ theme }) {
7
7
return dateObj . getFullYear ( )
8
8
} , [ ] )
9
9
10
+ /* eslint-disable jsx-a11y/control-has-associated-label */
10
11
return (
11
12
< footer className = { `${ theme } -footer` } >
12
13
< div className = "footer-content" >
You can’t perform that action at this time.
0 commit comments