generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tag): changes component name
- Loading branch information
ITML
committed
Mar 4, 2022
1 parent
ea58e86
commit e1db068
Showing
7 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import React from 'react'; | ||
|
||
function Tags({ children, ...rest }) { | ||
function Tag({ children, ...rest }) { | ||
return ( | ||
<div {...rest} className={`eea tags ${rest.className || ''}`}> | ||
<div>{children}</div> | ||
</div> | ||
); | ||
} | ||
|
||
Tags.Title = ({ children, ...rest }) => ( | ||
Tag.Title = ({ children, ...rest }) => ( | ||
<span className="tags-title" {...rest}> | ||
{children} | ||
</span> | ||
); | ||
|
||
Tags.Tag = ({ children, ...rest }) => ( | ||
Tag.Tag = ({ children, ...rest }) => ( | ||
<a {...rest} className={`tag ${rest.className || ''}`}> | ||
<span className="name">{children}</span> | ||
</a> | ||
); | ||
|
||
export default Tags; | ||
export default Tag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
theme/themes/eea/extras/tags.less → theme/themes/eea/extras/tag.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.