Skip to content

Commit

Permalink
Remove unused legacy components and theming
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Sep 4, 2023
1 parent b790a69 commit ed81c14
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 510 deletions.
40 changes: 0 additions & 40 deletions src/components/legacy/AirshipModal.tsx

This file was deleted.

31 changes: 29 additions & 2 deletions src/components/legacy/Buttons/PrimaryButton.ui.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react'
import { Text as RNText, TextStyle, TouchableHighlight, TouchableHighlightProps, View } from 'react-native'
import { StyleSheet, Text as RNText, TextStyle, TouchableHighlight, TouchableHighlightProps, View } from 'react-native'

import { primaryButtonUnderlay, styles } from './style'
import { THEME } from '../../../theme/variables/airbitz'
import { scale } from '../../../util/scaling'

interface TextProps {
children: React.ReactNode
Expand Down Expand Up @@ -35,3 +36,29 @@ export class PrimaryButton extends React.Component<Props> {
)
}
}

const primaryButtonUnderlay = { color: THEME.COLORS.PRIMARY }

const styles = StyleSheet.create({
button: {
padding: 14,
borderRadius: 5,
alignItems: 'center',
justifyContent: 'center',
flex: -1
},
buttonText: {
fontFamily: THEME.FONTS.DEFAULT,
fontSize: scale(18),
lineHeight: scale(18),
position: 'relative',
top: 1
},
// PRIMARY BUTTON
primaryButton: {
backgroundColor: THEME.COLORS.SECONDARY
},
primaryButtonText: {
color: THEME.COLORS.WHITE
}
})
36 changes: 0 additions & 36 deletions src/components/legacy/Buttons/SecondaryButton.ui.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions src/components/legacy/Buttons/TertiaryButton.ui.tsx

This file was deleted.

62 changes: 0 additions & 62 deletions src/components/legacy/Buttons/style.ts

This file was deleted.

58 changes: 0 additions & 58 deletions src/components/legacy/ContentArea.tsx

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/legacy/IconCircle.tsx

This file was deleted.

78 changes: 0 additions & 78 deletions src/components/legacy/LadderLayout.tsx

This file was deleted.

Loading

0 comments on commit ed81c14

Please sign in to comment.