File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function App() {
30
30
key = { i }
31
31
srcObject = { blob }
32
32
picked = { picked . includes ( blob ) }
33
- onPick = { ( ) => setPicked ( ( prev ) => toggle ( prev , blob ) ) }
33
+ onPick = { ( ) => setPicked ( ( prev ) => [ blob , ... prev ] ) }
34
34
/>
35
35
) ) }
36
36
</ >
@@ -39,10 +39,4 @@ function App() {
39
39
) ;
40
40
}
41
41
42
- function toggle < T > ( list : T [ ] , item : T ) : T [ ] {
43
- return list . includes ( item )
44
- ? list . filter ( ( each ) => each !== item )
45
- : [ ...list , item ] ;
46
- }
47
-
48
42
export default App ;
Original file line number Diff line number Diff line change @@ -25,14 +25,19 @@ a:hover {
25
25
body {
26
26
margin : 0 ;
27
27
display : flex;
28
- place-items : center;
29
28
min-width : 320px ;
30
29
min-height : 100vh ;
31
30
}
32
31
33
32
h1 {
34
33
font-size : 3.2em ;
35
34
line-height : 1.1 ;
35
+ font-weight : 100 ;
36
+ }
37
+ h2 ,
38
+ h3 ,
39
+ h4 {
40
+ font-weight : 100 ;
36
41
}
37
42
38
43
button {
You can’t perform that action at this time.
0 commit comments