I believe most errors are fixed. Rewrite is basically complete

This commit is contained in:
2024-10-21 12:32:53 -05:00
parent 2e36b01266
commit 3f477e8dfb
4 changed files with 14 additions and 11 deletions

View File

@ -132,7 +132,13 @@ const RelationshipView: React.FC<RelationshipProps> = ({ pfpUrl }) => {
if (!status || !status.relationship) {
// Case 1: Not in a relationship
return showRequestRelationship ? (
<RequestRelationship onRequestSent={handleRequestSent} />
<ThemedView>
<RequestRelationship onRequestSent={handleRequestSent} />
<TextButton
width={220} height={60} text='Stop searching' fontSize={18}
onPress={() => setShowRequestRelationship(false)}
/>
</ThemedView>
) : (
<TextButton
width={220} height={60} text='Request Relationship' fontSize={18}
@ -162,13 +168,8 @@ const RelationshipView: React.FC<RelationshipProps> = ({ pfpUrl }) => {
</ThemedView>
<ThemedView style={styles.buttonContainer}>
<TextButton
width={100} height={40}
text='Accept' fontSize={18}
onPress={handleAcceptRequest}
/>
<TextButton
width={100} height={40}
text='Reject' fontSize={18}
width={150} height={40}
text='Cancel Request' fontSize={18}
onPress={handleRejectRequest}
/>
</ThemedView>
@ -291,7 +292,6 @@ const styles = StyleSheet.create({
marginBottom: 10,
},
buttonContainer: {
flexDirection: 'row',
justifyContent: 'space-around',
width: '100%',
marginTop: 20,