mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 11:58:06 +08:00
Fixed buttons
This commit is contained in:
parent
e67485d247
commit
0247afe553
3 changed files with 8 additions and 10 deletions
|
@ -15,7 +15,7 @@ import {
|
|||
UserInfoParams,
|
||||
Semester,
|
||||
} from "../../interfaces/Interfaces";
|
||||
import AnimatedContainer from "../../components/AnimatedContainer/AnimatedContainer";
|
||||
import Button from "../../components/Button/Button";
|
||||
import { TouchableOpacity, Image } from "react-native";
|
||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import {
|
||||
|
@ -215,14 +215,15 @@ export default function UserInfoPage() {
|
|||
setOpen={(open) => setSubjectsOpen(open)}
|
||||
setValue={setSelectedSubjects}
|
||||
placeholder="Subjects"
|
||||
placeholderStyle={styles.text_white_tiny}
|
||||
style={styles.input}
|
||||
textStyle={styles.text_white_small_bold}
|
||||
dropDownContainerStyle={{ backgroundColor: "white" }}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
<TouchableOpacity
|
||||
style={styles.button_template}
|
||||
<Button
|
||||
color={colors.secondary_3}
|
||||
onPress={() => {
|
||||
if (isEditable) {
|
||||
mutation.mutate({
|
||||
|
@ -240,7 +241,7 @@ export default function UserInfoPage() {
|
|||
<Text style={styles.text_white_small}>
|
||||
{isEditable && StudentInfo.isSuccess ? "Save" : "Edit Profile"}
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
</Button>
|
||||
</AnimatedContainerNoScroll>
|
||||
</View>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue