Allow edition of some document fields
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
17
apps/console/src/components/form/DocumentTypeOptions.tsx
Normal file
17
apps/console/src/components/form/DocumentTypeOptions.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { useTranslate } from "@probo/i18n";
|
||||
import { Option } from "@probo/ui";
|
||||
import { documentTypes, getDocumentTypeLabel } from "@probo/helpers";
|
||||
|
||||
export function DocumentTypeOptions() {
|
||||
const { __ } = useTranslate();
|
||||
|
||||
return (
|
||||
<>
|
||||
{documentTypes.map((type) => (
|
||||
<Option key={type} value={type}>
|
||||
{getDocumentTypeLabel(__, type)}
|
||||
</Option>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user