Skip to content

Commit

Permalink
Add missings
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbiagioninc committed Sep 2, 2024
1 parent e2b4169 commit 457fff4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { FC } from 'react'
import { Text as TextRN, TextProps } from 'react-native'
import { fontFamilyWeightMap, FontWeightStyle } from '@utils/fonts'

export const Text: FC<
Omit<TextProps, 'className'> & { variant?: FontWeightStyle; textClassName?: string }
> = ({ variant = 'regular', textClassName = '', ...props }) => {
const style = {
fontFamily: fontFamilyWeightMap[variant],
}
return <TextRN {...props} className={textClassName} style={style} />
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const login = createCustomServiceCall({

const requestPasswordResetCode = createCustomServiceCall({
inputShape: forgotPasswordShape,
cb: async ({ client, input }) => {
cb: async ({ client, input, utils }) => {
await client.post(`/password/reset/`, utils.toApi(input))
},
})
Expand Down

0 comments on commit 457fff4

Please sign in to comment.