1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

Tags component

This commit is contained in:
muerwre 2019-07-27 18:28:28 +07:00
parent c13c0fcc3c
commit 9435df5b10
6 changed files with 39 additions and 11 deletions

View file

@ -26,7 +26,6 @@
&:global(.green) {
background: $green_gradient;
color: transparentize(black, 0.4);
}
&:global(.olive) {

View file

@ -0,0 +1,25 @@
import React, {FC, HTMLAttributes} from 'react';
import {TagField} from "~/components/containers/TagField";
import {ITag} from "~/redux/types";
import {Tag} from "~/components/node/Tag";
type IProps = HTMLAttributes<HTMLDivElement> & {
tags: ITag[];
}
export const Tags: FC<IProps> = ({
tags,
...props
}) => (
<TagField {...props}>
{
tags.map(tag => (
<Tag
key={tag.title}
title={tag.title}
feature={tag.feature}
/>
))
}
</TagField>
);