Skip to content

Commit

Permalink
#22/fix - noti card desgin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hein-HtetSan committed Oct 30, 2024
1 parent 2190b9f commit 3dd0430
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/screens/HomeScreen/HomeScreenHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function HomeScreenHeader() {
</View>
</View>
{/* nofification icon */}
<FontAwesome onPress={() => router.push('/screens/NotificationScreen/NotificationCenterScreen')} name="bell" size={24} color={Colors.white} style={styles.notificationIcon} />
<FontAwesome onPress={() => router.push('/screens/NotificationScreen/NotificationCenterScreen')} name="bell" size={24} color={Colors.Swan} style={styles.notificationIcon} />

</View>
</View>
Expand Down
7 changes: 5 additions & 2 deletions app/screens/NotificationScreen/NotificationCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { Colors } from '../../../constants/Colors';
import FontAwesome from 'react-native-vector-icons/FontAwesome';

function NotificationCard({ type, content, timestamp, sender, onDelete }) {
return (
Expand Down Expand Up @@ -30,7 +31,9 @@ function NotificationCard({ type, content, timestamp, sender, onDelete }) {

{/* delete msg button */}
<TouchableOpacity style={styles.deleteButton} onPress={onDelete}>
<Text style={{ color: Colors.Red, textTransform: 'uppercase', fontWeight: 'bold' }}>x</Text>
<Text style={{ color: Colors.LightRed, fontWeight: 'bold' }}>
<FontAwesome name="trash" size={18} style={{ marginRight: 15 }} /> Remove
</Text>
</TouchableOpacity>
</View>
);
Expand Down Expand Up @@ -76,7 +79,7 @@ const styles = StyleSheet.create({
right: 10,
paddingVertical: 4,
paddingHorizontal: 10,
backgroundColor: Colors.LightRed,
// backgroundColor: Colors.LightRed,
borderRadius: 5,
},
deleteButtonText: {
Expand Down
11 changes: 7 additions & 4 deletions app/screens/UserScreen/ProfileScreen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ export default function ProfileScreen() {
</Text>
</View>

<Text style={{
paddingHorizontal: 15, fontSize: 15, color: Colors.Red,
fontWeight: 'bold', marginTop: 20, marginBottom: 10,
}}>Danger Zone</Text>


{/* just for further upgrade */}
<View style={{ padding: 12, }}>
Expand All @@ -83,6 +80,12 @@ export default function ProfileScreen() {
<FontAwesome name="file" size={18} color={Colors.tailwind.primary} style={{ marginRight: 10 }} /> Export Contribution Records
</Text>
</View>

<Text style={{
paddingHorizontal: 5, fontSize: 15, color: Colors.Red,
fontWeight: 'bold', marginTop: 20, marginBottom: 10,
}}>Danger Zone</Text>

{/* delete account button */}
<View style={styles.deleteButton}>
<Text
Expand Down

0 comments on commit 3dd0430

Please sign in to comment.