Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 9814562f

Přidáno uživatelem Fantič před více než 1 rok

re #10895: NoteViewPage: Sort refactor

Zobrazit rozdíly:

src/components/notes/NoteView.tsx
83 83
    }
84 84

  
85 85
    return (
86
        <HStack style={props.higlighted && {backgroundColor: "#FFF8E1",borderBottomColor: '#FFD54F', borderBottomWidth: 1.5, paddingBottom: 10}} marginTop={5}>
86
        <HStack style={props.higlighted && { backgroundColor: "#FFF8E1", borderBottomColor: '#FFD54F', borderBottomWidth: 1.5, paddingBottom: 10 }} marginTop={5}>
87 87
            <Box width="10" height="10" marginTop="2">
88 88
                <Avatar bg={note.noteColor} size="sm" source={{
89 89
                    uri: AVATAR_URL + "/" + note.avatarUrl
......
119 119

  
120 120
                    {note.items && note.items.length > 0 &&
121 121
                        <Flex marginLeft={1} flex={0}>
122
                            <Button p={1} variant="outline" size="sm" onPress={() => props.navigation.navigate("Item", { itemId: note.items[0] })}>
123
                                {note.items[0]}
122
                            <Button p={1} variant="solid" backgroundColor="#F4DFAB" borderRadius={8} size="sm" onPress={() => props.navigation.navigate("Item", { itemId: note.items[0] })}>
123
                                <Text color="#654B07" fontSize={12}>
124
                                    {note.items[0]}
125
                                </Text>
124 126
                            </Button>
125 127
                        </Flex>
126 128

  
......
168 170
                    </Flex>
169 171
                </HStack>
170 172
                {showReplies &&
171
                    <VStack style={{borderLeftColor: '#FFC107', borderLeftWidth: 1, paddingLeft: 5, marginTop: 5}}>
173
                    <VStack style={{ borderLeftColor: '#FFC107', borderLeftWidth: 1, paddingLeft: 5, marginTop: 5 }}>
172 174
                        {note.replies?.map((note, index) => {
173 175
                            return (
174 176
                                <NoteView key={index} note={note} handleReply={null} handleDelete={props.handleDelete} handleEdit={props.handleEdit} setConfirmDialog={props.setConfirmDialog} navigation={props.navigation} />

Také k dispozici: Unified diff