Skip to content

Commit

Permalink
Merge pull request #4428 from EdgeApp/jon/auto-logout-ui2
Browse files Browse the repository at this point in the history
- changed: Update UI theme for Settings AutoLogoutModal
  • Loading branch information
swansontec authored Sep 4, 2023
2 parents bc5a7b2 + 07ced1d commit e52d3a6
Show file tree
Hide file tree
Showing 19 changed files with 516 additions and 1,028 deletions.
809 changes: 393 additions & 416 deletions src/__tests__/modals/__snapshots__/AutoLogoutModal.test.tsx.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ exports[`FioAddressList should render with loading props 1`] = `
"paymentTypeVisa": {
"testUri": "../../../src/assets/images/paymentTypes/paymentTypeVisa.png",
},
"pickerTextDark": "#FFFFFF",
"pickerTextLight": "#000000",
"pickerText": "#FFFFFF",
"pinUsernameButton": [
"rgba(255, 255, 255, 0)",
"rgba(255, 255, 255, 0)",
Expand Down Expand Up @@ -721,8 +720,7 @@ exports[`FioAddressList should render with loading props 1`] = `
"paymentTypeVisa": {
"testUri": "../../../src/assets/images/paymentTypes/paymentTypeVisa.png",
},
"pickerTextDark": "#FFFFFF",
"pickerTextLight": "#000000",
"pickerText": "#FFFFFF",
"pinUsernameButton": [
"rgba(255, 255, 255, 0)",
"rgba(255, 255, 255, 0)",
Expand Down
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.

Loading

0 comments on commit e52d3a6

Please sign in to comment.