Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Mar 12, 2024
1 parent 54cdccf commit eb3999a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/app/lib/generators/translationKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 4 additions & 2 deletions packages/ui/components/data-portal/InlineTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}
Expand All @@ -52,7 +53,8 @@ const _InlineTextInput = forwardRef<HTMLInputElement, InlineEditProps>(
_InlineTextInput.displayName = 'InlineEdit'
export const InlineTextInput = createPolymorphicComponent<'input', InlineEditProps>(_InlineTextInput)

type FontSizes = keyof ReturnType<typeof useStyles>['classes']
type FontStyles = ReturnType<typeof useStyles>['classes']
type FontSizes = keyof FontStyles

interface InlineEditProps extends TextInputProps {
fontSize?: FontSizes
Expand Down

0 comments on commit eb3999a

Please sign in to comment.