From ccb45da095b9dd213186c2f6ba04ea9530033920 Mon Sep 17 00:00:00 2001 From: Thiago Silva Date: Thu, 4 Jan 2024 15:27:01 -0300 Subject: [PATCH] fix: use translateProperty in UploadShowComponent --- src/features/upload-file/components/UploadShowComponent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/features/upload-file/components/UploadShowComponent.tsx b/src/features/upload-file/components/UploadShowComponent.tsx index 834aedd..6ac4e28 100644 --- a/src/features/upload-file/components/UploadShowComponent.tsx +++ b/src/features/upload-file/components/UploadShowComponent.tsx @@ -1,15 +1,16 @@ import { FormGroup, Label } from '@adminjs/design-system' -import { ShowPropertyProps } from 'adminjs' +import { ShowPropertyProps, useTranslation } from 'adminjs' import React, { FC } from 'react' import File from './file.js' const Show: FC = (props) => { const { property } = props + const { translateProperty } = useTranslation() return ( - + )