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:
parent
c13c0fcc3c
commit
9435df5b10
6 changed files with 39 additions and 11 deletions
|
@ -45,7 +45,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
height: 54px;
|
||||
box-shadow: inset transparentize(black, 0.9) 0 -1px, inset transparentize(white, 0.95) 0 1px;
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
&:global(.green) {
|
||||
background: $green_gradient;
|
||||
color: transparentize(black, 0.4);
|
||||
}
|
||||
|
||||
&:global(.olive) {
|
||||
|
|
25
src/components/node/Tags/index.tsx
Normal file
25
src/components/node/Tags/index.tsx
Normal 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>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue