Add screens for opting into Sentry error tracking

This commit is contained in:
Lei Nelissen
2021-02-13 15:34:43 +01:00
parent 8dc287e56a
commit 4635266273
22 changed files with 3004 additions and 6355 deletions

View File

@@ -1,6 +1,5 @@
import React, { useCallback } from 'react';
import TrackPlayer from 'react-native-track-player';
import { SubHeader } from 'components/Typography';
import { useDispatch } from 'react-redux';
import music from 'store/music';
import { t } from '@localisation';
@@ -12,6 +11,10 @@ const ClearCache = styled(Button)`
margin-top: 16px;
`;
const Container = styled.ScrollView`
padding: 24px;
`;
export default function CacheSettings() {
const dispatch = useDispatch();
const handleClearCache = useCallback(() => {
@@ -23,10 +26,9 @@ export default function CacheSettings() {
}, [dispatch]);
return (
<>
<SubHeader>{t('setting-cache')}</SubHeader>
<Container>
<Text>{t('setting-cache-description')}</Text>
<ClearCache title={t('reset-cache')} onPress={handleClearCache} />
</>
</Container>
);
}