diff --git a/apps/app/lib/generators/translationKeys.ts b/apps/app/lib/generators/translationKeys.ts index f36fd7db8a..514df9634f 100644 --- a/apps/app/lib/generators/translationKeys.ts +++ b/apps/app/lib/generators/translationKeys.ts @@ -5,7 +5,7 @@ import prettier from 'prettier' import fs from 'fs' -import { prisma, type Prisma } from '@weareinreach/db' +import { prisma, type Prisma } from '@weareinreach/db/client' import { type PassedTask } from 'lib/generate' const localePath = 'public/locales/en' diff --git a/packages/ui/components/data-portal/InlineTextInput.tsx b/packages/ui/components/data-portal/InlineTextInput.tsx index 69aeb73646..942035b94b 100644 --- a/packages/ui/components/data-portal/InlineTextInput.tsx +++ b/packages/ui/components/data-portal/InlineTextInput.tsx @@ -34,10 +34,11 @@ const useBaseStyles = createStyles((theme) => ({ const useFontSize = ({ fontSize, classNames }: InlineEditProps) => { const { classes } = useStyles() const { classes: baseClasses, cx } = useBaseStyles() + const fontClass = fontSize ? classes[fontSize] : undefined return { ...classNames, input: fontSize - ? cx(classNames?.input, classes[fontSize], baseClasses.input) + ? cx(classNames?.input, fontClass, baseClasses.input) : cx(classNames?.input, baseClasses.input), } } @@ -52,7 +53,8 @@ const _InlineTextInput = forwardRef( _InlineTextInput.displayName = 'InlineEdit' export const InlineTextInput = createPolymorphicComponent<'input', InlineEditProps>(_InlineTextInput) -type FontSizes = keyof ReturnType['classes'] +type FontStyles = ReturnType['classes'] +type FontSizes = keyof FontStyles interface InlineEditProps extends TextInputProps { fontSize?: FontSizes