@@ -390,34 +390,45 @@ export default function AddEditCourseScreen() {
390390 </ Text >
391391 </ Pressable >
392392
393- < Pressable
394- onPress = { handleSave }
395- className = "items-center rounded-xl bg-blue-500 py-3.5 active:bg-blue-600"
396- >
397- < Text className = "text-base font-semibold text-white" >
398- { t ( "common.save" ) }
399- </ Text >
400- </ Pressable >
393+ { isEdit ? (
394+ < View className = "flex-row gap-3" >
395+ < Pressable
396+ onPress = { handleSave }
397+ className = "flex-1 flex-row items-center justify-center rounded-xl bg-blue-500 py-3.5 active:bg-blue-600"
398+ >
399+ < Ionicons name = "save-outline" size = { 18 } color = "#ffffff" />
400+ < Text className = "ml-1.5 text-base font-semibold text-white" >
401+ { t ( "common.save" ) }
402+ </ Text >
403+ </ Pressable >
401404
402- { isEdit && (
403- < Pressable
404- onPress = { ( ) => setShareVisible ( true ) }
405- className = "mt-3 flex-row items-center justify-center rounded-xl bg-white py-3.5 active:bg-neutral-50 dark:bg-neutral-800 dark:active:bg-neutral-700"
406- >
407- < Ionicons name = "qr-code-outline" size = { 18 } color = "#3b82f6" />
408- < Text className = "ml-1.5 text-base font-medium text-blue-500" >
409- { t ( "schedule.shareCourse" ) }
410- </ Text >
411- </ Pressable >
412- ) }
405+ < Pressable
406+ onPress = { ( ) => setShareVisible ( true ) }
407+ className = "flex-1 flex-row items-center justify-center rounded-xl bg-white py-3.5 active:bg-neutral-50 dark:bg-neutral-800 dark:active:bg-neutral-700"
408+ >
409+ < Ionicons name = "qr-code-outline" size = { 18 } color = "#3b82f6" />
410+ < Text className = "ml-1.5 text-base font-medium text-blue-500" >
411+ { t ( "common.share" ) }
412+ </ Text >
413+ </ Pressable >
413414
414- { isEdit && (
415+ < Pressable
416+ onPress = { ( ) => setShowDeleteConfirm ( true ) }
417+ className = "flex-1 flex-row items-center justify-center rounded-xl bg-red-500 py-3.5 active:bg-red-600"
418+ >
419+ < Ionicons name = "trash-outline" size = { 18 } color = "#ffffff" />
420+ < Text className = "ml-1.5 text-base font-semibold text-white" >
421+ { t ( "common.delete" ) }
422+ </ Text >
423+ </ Pressable >
424+ </ View >
425+ ) : (
415426 < Pressable
416- onPress = { ( ) => setShowDeleteConfirm ( true ) }
417- className = "mt-3 items-center rounded-xl py-3 active:bg-red-50 dark:active:bg-red-950 "
427+ onPress = { handleSave }
428+ className = "items-center rounded-xl bg-blue-500 py-3.5 active:bg-blue-600 "
418429 >
419- < Text className = "text-base font-medium text-red-500 " >
420- { t ( "courseManage.deleteCourseTitle " ) }
430+ < Text className = "text-base font-semibold text-white " >
431+ { t ( "common.save " ) }
421432 </ Text >
422433 </ Pressable >
423434 ) }
0 commit comments