Massive/constants.ts
Brandon Presley a69bfd62a6 Use react-hook-forms on SettingsPage
This greatly reduces our lines of code.
Also I thought it might improve performance
to address #135 but it didn't make any difference.
2022-12-24 18:19:35 +13:00

14 lines
376 B
TypeScript

export const MARGIN = 10
export const PADDING = 10
export const ITEM_PADDING = 8
export const DARK_RIPPLE = '#444444'
export const LIGHT_RIPPLE = '#c2c2c2'
export const toSentenceCase = (camelCase: string) => {
if (camelCase) {
const result = camelCase.replace(/([A-Z])/g, ' $1')
return result[0].toUpperCase() + result.substring(1).toLowerCase()
}
return ''
}