Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 1322456

Browse files
committedAug 25, 2021
Update
Initiated by mongodb/docs-realm@616f719
1 parent f8d1459 commit 1322456

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed
 

‎components/ActionSheet.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ export function ActionSheet({ actions, visible, closeOverlay }) {
2121
{[...actions, cancelAction].map(({ title, action }) => (
2222
<ListItem
2323
key={title}
24-
title={title}
2524
onPress={() => {
2625
closeOverlay();
2726
action();
28-
}}
29-
/>
27+
}}>
28+
<ListItem.Content>
29+
<ListItem.Title>
30+
{title}
31+
</ListItem.Title>
32+
</ListItem.Content>
33+
</ListItem>
3034
))}
3135
</>
3236
</Overlay>

‎components/ManageTeam.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,16 @@ export function ManageTeam() {
6767
</View>
6868
{teamMemberList.map((member) => (
6969
<ListItem
70-
title={member.name}
7170
onPress={() => openDeleteDialogue(member)}
7271
bottomDivider
7372
key={member.name}
74-
/>
73+
>
74+
<ListItem.Content>
75+
<ListItem.Title>
76+
{member.name}
77+
</ListItem.Title>
78+
</ListItem.Content>
79+
</ListItem>
7580
))}
7681

7782
<Text h4> Add member:</Text>

‎components/TaskItem.js

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React, { useState } from "react";
2-
import { Text, ListItem } from "react-native-elements";
2+
import { ListItem, Text } from "react-native-elements";
33
import { useTasks } from "../providers/TasksProvider";
44
import { ActionSheet } from "./ActionSheet";
55
import { Task } from "../schemas";
66

7+
import styles from "../stylesheet";
8+
79
export function TaskItem({ task }) {
810
const [actionSheetVisible, setActionSheetVisible] = useState(false);
911

@@ -57,21 +59,25 @@ export function TaskItem({ task }) {
5759
}}
5860
actions={actions}
5961
/>
60-
<ListItem
61-
key={task.id}
62+
<ListItem
63+
key={task.id}
6264
onPress={() => {
6365
setActionSheetVisible(true);
6466
}}
65-
title={task.name}
66-
bottomDivider
67-
checkmark={
67+
bottomDivider>
68+
<ListItem.Content>
69+
<ListItem.Title>
70+
{task.name}
71+
</ListItem.Title>
72+
</ListItem.Content>
73+
{
6874
task.status === Task.STATUS_COMPLETE ? (
6975
<Text>&#10004; {/* checkmark */}</Text>
7076
) : task.status === Task.STATUS_IN_PROGRESS ? (
7177
<Text>In Progress</Text>
7278
) : null
7379
}
74-
/>
80+
</ListItem>
7581
</>
7682
);
7783
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@react-navigation/stack": "^5.9.2",
1616
"react": "16.13.1",
1717
"react-native": "0.63.2",
18-
"react-native-elements": "^2.2.1",
18+
"react-native-elements": "^2.3.2",
1919
"react-native-gesture-handler": "^1.7.0",
2020
"react-native-reanimated": "^1.13.0",
2121
"react-native-safe-area-context": "^3.1.6",

‎views/ProjectsView.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ export function ProjectsView({ navigation }) {
2020
{projectData.map((project) => (
2121
<View key={project.name}>
2222
<ListItem
23-
title={project.name}
2423
onPress={() => onClickProject(project)}
2524
bottomDivider
2625
key={project.name}
27-
/>
26+
>
27+
<ListItem.Content>
28+
<ListItem.Title>
29+
{project.name}
30+
</ListItem.Title>
31+
</ListItem.Content>
32+
</ListItem>
2833
</View>
2934
))}
3035
</View>

0 commit comments

Comments
 (0)
This repository has been archived.