Skip to content

Commit

Permalink
Merge pull request #4 from eea/develop
Browse files Browse the repository at this point in the history
refactor(quote): Rename SourceInfo to Extra component
  • Loading branch information
avoinea authored May 25, 2022
2 parents ff6b564 + 8489a0c commit 1e0229d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [0.3.0](https://github.com/eea/volto-quote-block/compare/0.2.0...0.3.0)

- refactor(quote): Rename SourceInfo to Extra component [`956ba9b`](https://github.com/eea/volto-quote-block/commit/956ba9bf2e0ed3864d9f142753ba2643c7ecede9)

#### [0.2.0](https://github.com/eea/volto-quote-block/compare/0.1.2...0.2.0)

> 19 May 2022
- Update quote + add testimonial quote variation [`#3`](https://github.com/eea/volto-quote-block/pull/3)
- refactor(quote): Rename sourceInfo field to extra [`51a9e32`](https://github.com/eea/volto-quote-block/commit/51a9e329e6d0a8b1caaadd42ccad1bd54e862210)
- Upgrade footnotes registry to work with volto-slate-footnotes 5.x [`3261f27`](https://github.com/eea/volto-quote-block/commit/3261f27d8749a022171ecdf8c854da832c40a2b9)
- Move reversed option to layout fieldset [`f0a94ac`](https://github.com/eea/volto-quote-block/commit/f0a94ac92820adc661030b095dc91fe048791e26)
Expand All @@ -15,7 +22,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Add footnotes support [`c63729c`](https://github.com/eea/volto-quote-block/commit/c63729cafce78dfe98d875d70214b3d8fd6c1f11)
- Prettier fix [`e4dd69a`](https://github.com/eea/volto-quote-block/commit/e4dd69a3051da854435093dc30f8048a650798a2)
- Remove usememo [`b5880a5`](https://github.com/eea/volto-quote-block/commit/b5880a5a1cf5c9889ec4c211c60f51986fd6255d)
- Update quote + add testimonial quote variation [`b248fa1`](https://github.com/eea/volto-quote-block/commit/b248fa1ed2adcd59050e907784bac126a74e145f)

#### [0.1.2](https://github.com/eea/volto-quote-block/compare/0.1.1...0.1.2)

Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pipeline {
environment {
GIT_NAME = "volto-quote-block"
NAMESPACE = "@eeacms"
SONARQUBE_TAGS = "volto.eea.europa.eu"
SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu"
DEPENDENCIES = ""
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-quote-block",
"version": "0.2.0",
"version": "0.3.0",
"description": "@eeacms/volto-quote-block: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
6 changes: 3 additions & 3 deletions src/Blocks/Quote/variations/DefaultQuote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Quote = (props) => {
<Quote.Source>{serializeText(source)}</Quote.Source>
)}
{reversed && extra && (
<Quote.SourceInfo>{serializeText(extra)}</Quote.SourceInfo>
<Quote.Extra>{serializeText(extra)}</Quote.Extra>
)}
{mode === 'edit' && !floated ? (
<Quote.Quote icons={icons}>
Expand Down Expand Up @@ -140,7 +140,7 @@ const Quote = (props) => {
<Quote.Source>{serializeText(source)}</Quote.Source>
)}
{!reversed && extra && (
<Quote.SourceInfo>{serializeText(extra)}</Quote.SourceInfo>
<Quote.Extra>{serializeText(extra)}</Quote.Extra>
)}
</div>
</blockquote>
Expand Down Expand Up @@ -168,7 +168,7 @@ Quote.Source = ({ children, ...rest }) => (
</div>
);

Quote.SourceInfo = ({ children, ...rest }) => (
Quote.Extra = ({ children, ...rest }) => (
<div className="info" {...rest}>
{children}
</div>
Expand Down

0 comments on commit 1e0229d

Please sign in to comment.