Skip to content

Commit

Permalink
rename TranslateObj to TranslateBase
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanynwyeung committed Aug 9, 2024
1 parent d21d3a5 commit e42cd69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/common/ui/src/components/Translate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Trans, useTranslation } from 'react-i18next'
/**
* Note: Trans.values & Trans.components wont work together...
*/
export function TranslateObj({
export function TranslateBase({
ns,
key18,
values,
Expand Down
4 changes: 2 additions & 2 deletions libs/gi/i18n/src/Translate.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { ColorText, SqBadge, TranslateObj } from '@genshin-optimizer/common/ui'
import { ColorText, SqBadge, TranslateBase } from '@genshin-optimizer/common/ui'
import '@genshin-optimizer/gi/theme' // import to validate typing for color variants
import type { ReactNode } from 'react'

Expand Down Expand Up @@ -61,7 +61,7 @@ export function Translate({
useBadge?: boolean
}) {
return (
<TranslateObj
<TranslateBase
ns={ns}
key18={key18}
values={values}
Expand Down
4 changes: 2 additions & 2 deletions libs/sr/i18n/src/Translate.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { ColorText, SqBadge, TranslateObj } from '@genshin-optimizer/common/ui'
import { ColorText, SqBadge, TranslateBase } from '@genshin-optimizer/common/ui'
import '@genshin-optimizer/sr/theme' // import to validate typing for color variants
import type { ReactNode } from 'react'

Expand Down Expand Up @@ -36,7 +36,7 @@ export function Translate({
useBadge?: boolean
}) {
return (
<TranslateObj
<TranslateBase
ns={ns}
key18={key18}
values={values}
Expand Down

0 comments on commit e42cd69

Please sign in to comment.