Skip to content

Commit 500ea6e

Browse files
change(literature): updated edition text position (#698)
* updated edition text position * updated test snapshots
1 parent 4143e61 commit 500ea6e

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/lib/modules/Literature/LiteratureEdition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class LiteratureEdition extends Component {
1313

1414
return withLabel ? (
1515
<>
16-
<label>edition</label> {edition}
16+
{edition} <label>edition</label>
1717
</>
1818
) : (
19-
`ed. ${edition}`
19+
`${edition} ed.`
2020
);
2121
}
2222
}

src/lib/pages/backoffice/Patron/PatronDetails/PatronCurrentBorrowingRequests/__snapshots__/PatronCurrentBorrowingRequests.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ exports[`PatronCurrentBorrowingRequests tests should render patron borrowing req
809809
edition="1"
810810
withLabel={false}
811811
>
812-
ed. 1
812+
1 ed.
813813
</LiteratureEdition>
814814
</Overridable(LiteratureEdition)>
815815
-
@@ -1043,7 +1043,7 @@ exports[`PatronCurrentBorrowingRequests tests should render patron borrowing req
10431043
edition="1"
10441044
withLabel={false}
10451045
>
1046-
ed. 1
1046+
1 ed.
10471047
</LiteratureEdition>
10481048
</Overridable(LiteratureEdition)>
10491049
-
@@ -2067,7 +2067,7 @@ exports[`PatronCurrentBorrowingRequests tests should render the see all button w
20672067
edition="1"
20682068
withLabel={false}
20692069
>
2070-
ed. 1
2070+
1 ed.
20712071
</LiteratureEdition>
20722072
</Overridable(LiteratureEdition)>
20732073
-

src/lib/pages/backoffice/Patron/PatronDetails/PatronPastBorrowingRequests/__snapshots__/PatronPastBorrowingRequests.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ exports[`PatronPastBorrowingRequests tests should render patron borrowing reques
816816
edition="1"
817817
withLabel={false}
818818
>
819-
ed. 1
819+
1 ed.
820820
</LiteratureEdition>
821821
</Overridable(LiteratureEdition)>
822822
-
@@ -1042,7 +1042,7 @@ exports[`PatronPastBorrowingRequests tests should render patron borrowing reques
10421042
edition="1"
10431043
withLabel={false}
10441044
>
1045-
ed. 1
1045+
1 ed.
10461046
</LiteratureEdition>
10471047
</Overridable(LiteratureEdition)>
10481048
-
@@ -2054,7 +2054,7 @@ exports[`PatronPastBorrowingRequests tests should render the see all button when
20542054
edition="1"
20552055
withLabel={false}
20562056
>
2057-
ed. 1
2057+
1 ed.
20582058
</LiteratureEdition>
20592059
</Overridable(LiteratureEdition)>
20602060
-

src/lib/pages/backoffice/Patron/PatronDetails/PatronPendingLoans/__snapshots__/PatronPendingLoans.test.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ exports[`PatronLoans tests should render patron loans 1`] = `
711711
edition="1"
712712
withLabel={false}
713713
>
714-
ed. 1
714+
1 ed.
715715
</LiteratureEdition>
716716
</Overridable(LiteratureEdition)>
717717
-
@@ -868,7 +868,7 @@ exports[`PatronLoans tests should render patron loans 1`] = `
868868
edition="1"
869869
withLabel={false}
870870
>
871-
ed. 1
871+
1 ed.
872872
</LiteratureEdition>
873873
</Overridable(LiteratureEdition)>
874874
-
@@ -1710,7 +1710,7 @@ exports[`PatronLoans tests should render the see all button when showing only a
17101710
edition="1"
17111711
withLabel={false}
17121712
>
1713-
ed. 1
1713+
1 ed.
17141714
</LiteratureEdition>
17151715
</Overridable(LiteratureEdition)>
17161716
-

0 commit comments

Comments
 (0)