Skip to content

Commit

Permalink
chore(js-ts): Convert app/components/UI/StyledButton/styledButtonStyl…
Browse files Browse the repository at this point in the history
…es.js to TypeScript (#11525)

This PR updates the TypeScript conversion for the StyledButton
component. It removes type annotations for fontStyle and containerStyle,
ensuring alignment with the latest requirements.

---------

Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Kylan Hurt <kylanhurt@users.noreply.github.com>
  • Loading branch information
devin-ai-integration[bot] and kylanhurt authored Oct 10, 2024
1 parent 562e5ed commit df6255a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { StyleSheet } from 'react-native';
import { colors as importedColors, fontStyles } from '../../../styles/common';
import { Theme } from '@metamask/design-tokens';

const createStyles = (colors) =>
const createStyles = (colors: Theme['colors']) =>
StyleSheet.create({
container: {
padding: 15,
Expand Down Expand Up @@ -138,7 +139,7 @@ const createStyles = (colors) =>
},
});

function getStyles(type, colors) {
function getStyles(type: string, colors: Theme['colors']) {
const styles = createStyles(colors);

let fontStyle, containerStyle;
Expand Down

0 comments on commit df6255a

Please sign in to comment.