From a6276fe3dfef7aa7b08356b6f7a7d155bf21c3fb Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Tue, 6 Nov 2018 17:53:56 +0100 Subject: [PATCH] Use loading spinner instead of text --- components/chart/chart.js | 4 ++-- components/labels.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/chart/chart.js b/components/chart/chart.js index e5366c9..5f8b029 100644 --- a/components/chart/chart.js +++ b/components/chart/chart.js @@ -1,5 +1,5 @@ import React, { Component } from 'react' -import { View, FlatList } from 'react-native' +import { View, FlatList, ActivityIndicator } from 'react-native' import range from 'date-range' import { LocalDate } from 'js-joda' import Svg, { G } from 'react-native-svg' @@ -212,7 +212,7 @@ function LoadingMoreView(props) { return ( {!props.end && - {labels.loadingMore} + } ) diff --git a/components/labels.js b/components/labels.js index adb6700..6a9709c 100644 --- a/components/labels.js +++ b/components/labels.js @@ -12,7 +12,6 @@ export const shared = { date: 'Date', cycleDayWithLinebreak: 'Cycle\nday', loading: 'Loading ...', - loadingMore: 'Loading more ...', more: 'more', less: 'less' }