Commit 67724f2f by archer

fix: tag

parent e5e720e8
...@@ -215,7 +215,7 @@ const Info = ( ...@@ -215,7 +215,7 @@ const Info = (
setRefresh(!refresh); setRefresh(!refresh);
}} }}
/> />
<Box w={'100%'} pl={['90px', '160px']} mt={2}> <Flex w={'100%'} pl={['90px', '160px']} mt={2}>
{getValues('tags') {getValues('tags')
.split(' ') .split(' ')
.filter((item) => item) .filter((item) => item)
...@@ -224,7 +224,7 @@ const Info = ( ...@@ -224,7 +224,7 @@ const Info = (
{item} {item}
</Tag> </Tag>
))} ))}
</Box> </Flex>
</Flex> </Flex>
<Flex mt={5} w={'100%'} alignItems={'flex-end'}> <Flex mt={5} w={'100%'} alignItems={'flex-end'}>
......
...@@ -132,11 +132,13 @@ const Kb = () => { ...@@ -132,11 +132,13 @@ const Kb = () => {
/> />
</Flex> </Flex>
<Box flex={'1 0 0'} overflow={'hidden'} pt={2}> <Box flex={'1 0 0'} overflow={'hidden'} pt={2}>
{kb.tags.map((tag, i) => ( <Flex>
<Tag key={i} mr={2} mb={2}> {kb.tags.map((tag, i) => (
{tag} <Tag key={i} mr={2} mb={2}>
</Tag> {tag}
))} </Tag>
))}
</Flex>
</Box> </Box>
</Card> </Card>
))} ))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment