@@ -20,13 +20,12 @@ import { dateToEpochWeekNumber, epochWNToDate } from "@/utils/epochWeekNumber";
20
20
import * as StoreReview from "expo-store-review" ;
21
21
22
22
import { PressableScale } from "react-native-pressable-scale" ;
23
- import { CheckSquare , Plus } from "lucide-react-native" ;
23
+ import { CheckSquare , Plus , WandSparkles } from "lucide-react-native" ;
24
24
import { useSafeAreaInsets } from "react-native-safe-area-context" ;
25
25
import { BlurView } from "expo-blur" ;
26
26
27
27
import Reanimated , {
28
28
FadeIn ,
29
- FadeInLeft ,
30
29
FadeInUp ,
31
30
FadeOutDown ,
32
31
FadeOutLeft ,
@@ -407,39 +406,67 @@ const WeekView: Screen<"Homeworks"> = ({ route, navigation }) => {
407
406
} }
408
407
/>
409
408
410
- < Reanimated . View
411
- layout = { animPapillon ( LinearTransition ) }
412
- entering = { animPapillon ( FadeInLeft ) . delay ( 100 ) }
413
- exiting = { animPapillon ( FadeOutLeft ) }
414
- style = { {
415
- alignItems : "center" ,
416
- justifyContent : "center" ,
417
- backgroundColor : hideDone ? theme . colors . primary : theme . colors . background + "ff" ,
418
- borderColor : theme . colors . border + "dd" ,
419
- borderWidth : 1 ,
420
- borderRadius : 800 ,
421
- height : 40 ,
422
- width : 40 ,
423
- gap : 4 ,
424
- shadowColor : "#00000022" ,
425
- shadowOffset : { width : 0 , height : 2 } ,
426
- shadowOpacity : 0.6 ,
427
- shadowRadius : 4 ,
428
- } }
429
- >
430
- < TouchableOpacity
431
- onPress = { ( ) => {
432
- setHideDone ( ! hideDone ) ;
409
+ < View style = { { flexDirection : "row" , gap : 10 } } >
410
+ < View
411
+ style = { {
412
+ alignItems : "center" ,
413
+ justifyContent : "center" ,
414
+ backgroundColor : hideDone ? theme . colors . primary : theme . colors . background + "ff" ,
415
+ borderColor : theme . colors . border + "dd" ,
416
+ borderWidth : 1 ,
417
+ borderRadius : 800 ,
418
+ height : 40 ,
419
+ width : 40 ,
420
+ gap : 4 ,
421
+ shadowColor : "#00000022" ,
422
+ shadowOffset : { width : 0 , height : 2 } ,
423
+ shadowOpacity : 0.6 ,
424
+ shadowRadius : 4 ,
433
425
} }
434
426
>
435
- < CheckSquare
436
- size = { 20 }
437
- color = { hideDone ? "#fff" : theme . colors . text }
438
- strokeWidth = { 2.5 }
439
- opacity = { hideDone ? 1 : 0.7 }
440
- />
441
- </ TouchableOpacity >
442
- </ Reanimated . View >
427
+ < TouchableOpacity
428
+ onPress = { ( ) => {
429
+ setHideDone ( ! hideDone ) ;
430
+ } }
431
+ >
432
+ < CheckSquare
433
+ size = { 20 }
434
+ color = { hideDone ? "#fff" : theme . colors . text }
435
+ strokeWidth = { 2.5 }
436
+ opacity = { hideDone ? 1 : 0.7 }
437
+ />
438
+ </ TouchableOpacity >
439
+ </ View >
440
+
441
+ < View
442
+ style = { {
443
+ alignItems : "center" ,
444
+ justifyContent : "center" ,
445
+ backgroundColor : theme . colors . primary ,
446
+ borderColor : theme . colors . border + "dd" ,
447
+ borderWidth : 1 ,
448
+ borderRadius : 800 ,
449
+ height : 40 ,
450
+ width : 40 ,
451
+ gap : 4 ,
452
+ shadowColor : "#00000022" ,
453
+ shadowOffset : { width : 0 , height : 2 } ,
454
+ shadowOpacity : 0.6 ,
455
+ shadowRadius : 4 ,
456
+ } }
457
+ >
458
+ < TouchableOpacity
459
+ onPress = { ( ) => navigation . navigate ( "SettingStack" , { screen : "SettingsMagic" } ) }
460
+ >
461
+ < WandSparkles
462
+ size = { 20 }
463
+ color = { theme . colors . text }
464
+ strokeWidth = { 2.5 }
465
+ opacity = { 1 }
466
+ />
467
+ </ TouchableOpacity >
468
+ </ View >
469
+ </ View >
443
470
</ PapillonModernHeader >
444
471
445
472
< AddHomeworkButton
0 commit comments