Skip to content

Commit

Permalink
Delete unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
nop33 committed Jun 14, 2024
1 parent 712b76e commit d98873c
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 748 deletions.
36 changes: 0 additions & 36 deletions apps/mobile-wallet/src/components/BalanceSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,11 @@ const BalanceSummary = ({ dateLabel, style, ...props }: BalanceSummaryProps) =>
const addressesStatus = useAppSelector((s) => s.addresses.status)
const addressesBalancesStatus = useAppSelector((s) => s.addresses.balancesStatus)
const addressHashes = useAppSelector(selectAddressIds) as AddressHash[]
// const addressesStatus = useAppSelector((s) => s.addresses.status)
// const isLoadingLatestTxs = useAppSelector((s) => s.loaders.loadingLatestTransactions)
const selectAddessesTokensWorth = useMemo(makeSelectAddressesTokensWorth, [])
const balanceInFiat = useAppSelector((s) => selectAddessesTokensWorth(s, addressHashes))
const theme = useTheme()
// const alphPrice = useAppSelector(selectAlphPrice)

// const theme = useTheme()
const navigation = useNavigation<NavigationProp<RootStackParamList | ReceiveNavigationParamList>>()

// const [worthInBeginningOfChart, setWorthInBeginningOfChart] = useState<DataPoint['worth']>()
// const worthDelta = useWorthDelta(worthInBeginningOfChart)

// const totalAlphAmountWorth = calculateAmountWorth(totalBalance, alphPrice ?? 0)

// const deltaColor = worthDelta < 0 ? theme.global.alert : worthDelta > 0 ? theme.global.valid : theme.bg.tertiary

const handleReceivePress = () => {
if (addressHashes.length === 1) {
navigation.navigate('ReceiveNavigation', {
Expand All @@ -74,16 +62,6 @@ const BalanceSummary = ({ dateLabel, style, ...props }: BalanceSummaryProps) =>

return (
<BalanceSummaryContainer style={style} {...props}>
{/* <LinearGradient
colors={[
'transparent',
addressesStatus === 'uninitialized' && isLoadingLatestTxs
? 'transparent'
: colord(deltaColor).alpha(0.05).toHex(),
'transparent'
]}
locations={[0.3, 0.65, 1]}
> */}
<TextContainer>
<DateLabelContainer>
<AppText color="secondary" semiBold>
Expand All @@ -100,14 +78,6 @@ const BalanceSummary = ({ dateLabel, style, ...props }: BalanceSummaryProps) =>
)}
</TextContainer>

{/* <ChartContainer>
<HistoricWorthChart
currency={currency}
latestWorth={totalAlphAmountWorth}
onWorthInBeginningOfChartChange={setWorthInBeginningOfChart}
/>
</ChartContainer> */}

{totalBalance === BigInt(0) && !isLoadingAlphBalances && addressesStatus === 'initialized' && (
<ReceiveFundsButtonContainer>
<Button
Expand All @@ -119,7 +89,6 @@ const BalanceSummary = ({ dateLabel, style, ...props }: BalanceSummaryProps) =>
/>
</ReceiveFundsButtonContainer>
)}
{/* </LinearGradient> */}
</BalanceSummaryContainer>
)
}
Expand All @@ -132,11 +101,6 @@ const TextContainer = styled.View`
margin: 10px ${DEFAULT_MARGIN + 10}px 15px ${DEFAULT_MARGIN + 10}px;
`

// const ChartContainer = styled.View`
// margin-right: -1px;
// margin-left: -1px;
// `

const DateLabelContainer = styled.View``

const ReceiveFundsButtonContainer = styled.View`
Expand Down
233 changes: 0 additions & 233 deletions apps/mobile-wallet/src/components/HistoricWorthChart.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions apps/mobile-wallet/src/components/List.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions apps/mobile-wallet/src/hooks/layout/useKeyboardMetrics.tsx

This file was deleted.

Loading

0 comments on commit d98873c

Please sign in to comment.