-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from arkajyotiadhikary/design-1
[LOF-21] Open up songs from search results into audio player.
- Loading branch information
Showing
8 changed files
with
249 additions
and
35 deletions.
There are no files selected for viewing
38 changes: 36 additions & 2 deletions
38
client/src/components/SearchScreen/SearchResult.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
client/src/components/UserSettingsScreen/ChangePassword.modal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React from "react"; | ||
import { | ||
Modal, | ||
Text, | ||
TextInput, | ||
View, | ||
TouchableOpacity, | ||
TouchableWithoutFeedback, | ||
} from "react-native"; | ||
import { useNavigation } from "@react-navigation/native"; | ||
import styles from "../../styles/UserSettings.style"; | ||
import { RootStackNavigationProp } from "../../../types"; | ||
import { FC } from "react"; | ||
|
||
interface ChangePasswordProps { | ||
modalVisible: boolean; | ||
setModalVisible: React.Dispatch<React.SetStateAction<boolean>>; | ||
} | ||
|
||
const ChangePassword: FC<ChangePasswordProps> = ({ | ||
modalVisible, | ||
setModalVisible, | ||
}) => { | ||
const closeModal = () => { | ||
setModalVisible(false); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
visible={modalVisible} | ||
transparent | ||
animationType="slide" | ||
onRequestClose={closeModal} | ||
> | ||
<TouchableWithoutFeedback onPress={closeModal}> | ||
<View style={styles.modalContainer}> | ||
<View style={styles.modal}> | ||
<Text style={styles.modalTitle}>Change Password</Text> | ||
<Text style={styles.modalInputTitle}> | ||
Current Password | ||
</Text> | ||
<View style={styles.modalInputContainer}> | ||
<TextInput | ||
secureTextEntry | ||
style={styles.modalInput} | ||
/> | ||
</View> | ||
<Text style={styles.modalInputTitle}>New Password</Text> | ||
<View style={styles.modalInputContainer}> | ||
<TextInput | ||
secureTextEntry | ||
style={styles.modalInput} | ||
/> | ||
</View> | ||
<TouchableOpacity style={styles.modalBtn}> | ||
<Text style={styles.modalBtnText}> | ||
Change Password | ||
</Text> | ||
</TouchableOpacity> | ||
</View> | ||
</View> | ||
</TouchableWithoutFeedback> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default ChangePassword; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.