Skip to content

Commit

Permalink
Remove victory charts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed May 7, 2024
1 parent 4977e1e commit f6e667a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 1,386 deletions.
142 changes: 0 additions & 142 deletions apps/app/components/dialogs/Stats/SpeedCharts.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions apps/app/components/dialogs/Stats/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Button, H5, Paragraph, XStack, YStack, useMedia } from 'tamagui'
import { ScrollView } from 'react-native'
import prettyBytes from 'pretty-bytes'
import prettyMilliseconds from 'pretty-ms'
import { SpeedCharts } from './SpeedCharts'
import { Dialog } from '../../reusable/Dialog'
import { useSessionStats } from '../../../hooks/useSessionStats'
import { Activity } from '@tamagui/lucide-icons'
Expand Down Expand Up @@ -43,12 +42,6 @@ export const StatsDialog = () => {
pr={media.gtXs ? '$2' : 0}
gap="$8"
>
{config.FEATURES_FLAGS.includes('speedCharts') && (
<SpeedCharts
sessionStats={sessionStats}
refreshInterval={refreshInterval}
/>
)}
<YStack>
<H5>{i18n.t('statsDialog.torrentsCount')}</H5>
<XStack jc="space-between" w="100%">
Expand Down
2 changes: 1 addition & 1 deletion apps/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { NODE_ENV } = process.env
const development = {
SIGNALING_URL: process.env.SIGNALING_URL || 'ws://localhost:9001',
APP_URL: process.env.APP_URL || 'http://localhost:8081',
// Availabe flags: 'speedCharts'
// Availabe flags: none
FEATURES_FLAGS: [],
}

Expand Down
1 change: 0 additions & 1 deletion apps/app/lib/victory.native.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/app/lib/victory.ts

This file was deleted.

4 changes: 1 addition & 3 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@
"react-native-webrtc": "111.0.3",
"semver": "^7.5.4",
"simple-peer": "^9.11.1",
"tamagui": "1.96.0",
"victory": "^36.6.11",
"victory-native": "^36.6.11"
"tamagui": "1.96.0"
},
"devDependencies": {
"@babel/core": "^7.23.6",
Expand Down
Loading

0 comments on commit f6e667a

Please sign in to comment.