Fix react keys
This commit is contained in:
parent
ff7f59e8b0
commit
70fd59a4be
2 changed files with 4 additions and 5 deletions
|
|
@ -134,9 +134,8 @@ export const OrderSets: React.FC<OrderSetProps> = ({
|
||||||
probability,
|
probability,
|
||||||
punishment_pool_name,
|
punishment_pool_name,
|
||||||
}) => (
|
}) => (
|
||||||
<Grid.Col span={{ base: 12, sm: 6 }}>
|
<Grid.Col key={id} span={{ base: 12, sm: 6 }}>
|
||||||
<Card
|
<Card
|
||||||
key={id}
|
|
||||||
shadow="sm"
|
shadow="sm"
|
||||||
padding="lg"
|
padding="lg"
|
||||||
radius="md"
|
radius="md"
|
||||||
|
|
|
||||||
|
|
@ -79,11 +79,11 @@ export const TimelineList: React.FC<{
|
||||||
}) => (
|
}) => (
|
||||||
<Timeline.Item key={id} active {...(TIMELINE_TYPE[type] ?? {})}>
|
<Timeline.Item key={id} active {...(TIMELINE_TYPE[type] ?? {})}>
|
||||||
<Text size="sm">
|
<Text size="sm">
|
||||||
{text.split("\n").map((str) => (
|
{text.split("\n").map((str, idx) => (
|
||||||
<>
|
<React.Fragment key={idx}>
|
||||||
{str}
|
{str}
|
||||||
<br />
|
<br />
|
||||||
</>
|
</React.Fragment>
|
||||||
))}
|
))}
|
||||||
</Text>
|
</Text>
|
||||||
<Flex mt={4} gap="xs">
|
<Flex mt={4} gap="xs">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue