Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 67b916af

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

#re 10797 LoadingBox refactor size

Zobrazit rozdíly:

src/pages/NotesViewPage.tsx
82 82
    }));
83 83
  }
84 84

  
85
  const handleCreateComment = (newComment : string, replyingTo : { messageId: string; userName: string } | null) => {
85
  const handleCreateComment = (newComment: string, replyingTo: { messageId: string; userName: string } | null) => {
86 86

  
87 87
    console.log(newComment, replyingTo)
88 88

  
......
152 152
            </Flex>
153 153
          </VStack>
154 154
        </HStack>
155
        {
156
          notesLoading ? (<LoadingBox text="Loading notes" />)
157
            :
158
            (<NotesListView notes={notes} navigation={navigation} handleCreateComment={handleCreateComment} requestPending={requestPending} />)
159
        }
155
        <Box>
156
          {
157
            notesLoading ? (
158
              <LoadingBox text="Loading notes" />
159
            )
160
              :
161
              (<NotesListView notes={notes} navigation={navigation} handleCreateComment={handleCreateComment} requestPending={requestPending} />)
162
          }
163
        </Box>
164

  
160 165

  
161 166
      </VStack>
162 167
    </Box>

Také k dispozici: Unified diff