mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 04:33:46 +00:00
Merge branch 'features/custom-fields' of github.com:strapi/strapi into features/custom-fields
This commit is contained in:
commit
1ca7501c97
@ -1,6 +1,8 @@
|
||||
import React from 'react';
|
||||
import { Stack } from '@strapi/design-system/Stack';
|
||||
import { Typography } from '@strapi/design-system/Typography';
|
||||
import { Flex } from '@strapi/design-system/Flex';
|
||||
import { Box } from '@strapi/design-system/Box';
|
||||
import { Field, FieldHint, FieldError, FieldLabel } from '@strapi/design-system/Field';
|
||||
import { useIntl } from 'react-intl';
|
||||
import getTrad from '../../../utils/getTrad';
|
||||
@ -11,6 +13,7 @@ const ColorPickerInput = ({
|
||||
disabled,
|
||||
error,
|
||||
intlLabel,
|
||||
labelAction,
|
||||
name,
|
||||
onChange,
|
||||
required,
|
||||
@ -26,7 +29,10 @@ const ColorPickerInput = ({
|
||||
hint={description && formatMessage(description)}
|
||||
>
|
||||
<Stack spacing={1}>
|
||||
<FieldLabel required={required}>{formatMessage(intlLabel)}</FieldLabel>
|
||||
<Flex>
|
||||
<FieldLabel required={required}>{formatMessage(intlLabel)}</FieldLabel>
|
||||
{labelAction && <Box paddingLeft={1}>{labelAction}</Box>}
|
||||
</Flex>
|
||||
<Typography variant="pi" as="p">
|
||||
{formatMessage(
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user