Skip to content

Commit 87ae450

Browse files
Merge pull request danskernesdigitalebibliotek#220 from itk-dev/feature/CMN-577-rename-recommender-to-simple-material
Itkdev - 577 - Rename recommender to simple material
2 parents e9622ab + 39f85fe commit 87ae450

File tree

7 files changed

+11
-243
lines changed

7 files changed

+11
-243
lines changed

base.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
@import "./src/stories/Library/Modals/modal-infomedia/infomedia";
8888
@import "./src/stories/Library/pincode-container/pincode-container";
8989
@import "./src/stories/Library/promo-bar/promo-bar";
90-
@import "./src/stories/Library/recommender/recommender";
90+
@import "./src/stories/Library/recommenders/recommenders";
9191
@import "./src/stories/Library/Lists/list-intermediates/list-intermediates";
9292
@import "./src/stories/Library/instant-loan/instant-loan";
9393
@import "./src/stories/Library/scroll-lock-background/scroll-lock-background";
@@ -96,8 +96,6 @@
9696
@import "./src/stories/Blocks/autosuggest/autosuggest";
9797
@import "./src/stories/Library/autosuggest-text/autosuggest-text";
9898
@import "./src/stories/Library/autosuggest-material/autosuggest-material";
99-
@import "./src/stories/Library/favorites-list-material-component/favorites-list-material-component";
100-
10199

102100
// Blocks
103101
@import "./src/stories/Blocks/footer/footer";

src/stories/Library/favorites-list-material-component/favorites-list-material-component.scss

Lines changed: 0 additions & 105 deletions
This file was deleted.

src/stories/Library/favorites-list-material-component/favorites-list-material-component.stories.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/stories/Library/favorites-list-material-component/favorites-list-material-component.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/stories/Library/recommender/Recommender.stories.tsx renamed to src/stories/Library/recommenders/Recommenders.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ComponentMeta, ComponentStory } from "@storybook/react";
2-
import Recommender from "./Recommender";
2+
import Recommender from "./Recommenders";
33

44
export default {
55
title: "Library / Recommender",

src/stories/Library/recommender/Recommender.tsx renamed to src/stories/Library/recommenders/Recommenders.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ const Recommender: React.FC<RecommenderProps> = ({
6060
>
6161
{recommenderData.map(({ title: recTitle, filled, authors }) => (
6262
<li
63-
className={`recommender-material ${
64-
bright ? "`recommender-material--bright" : ""
63+
className={`simple-material ${
64+
bright ? "`simple-material--bright" : ""
6565
}`}
6666
>
67-
<div className="recommender-material__favourite">
67+
<div className="simple-material__favourite">
6868
<div className="button-favourite button-favourite">
6969
<SvgIcon
7070
className={`icon-favourite icon-favourite${
@@ -77,17 +77,17 @@ const Recommender: React.FC<RecommenderProps> = ({
7777
/>
7878
</div>
7979
</div>
80-
<div className="recommender-material__cover-container">
80+
<div className="simple-material__cover-container">
8181
<Cover
8282
src="images/book_cover_3.jpg"
8383
size="medium"
8484
animate={false}
8585
tint="120"
8686
/>
8787
</div>
88-
<div className="recommender-material__meta">
89-
<a className="recommender-material__title">{recTitle}</a>
90-
<div className="recommender-material__author">{authors}</div>
88+
<div className="simple-material__meta">
89+
<a className="simple-material__title">{recTitle}</a>
90+
<div className="simple-material__author">{authors}</div>
9191
</div>
9292
</li>
9393
))}

src/stories/Library/recommender/recommender.scss renamed to src/stories/Library/recommenders/recommenders.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* stylelint-disable max-nesting-depth */
1212
&--triple-desktop {
1313
@include breakpoint-m {
14-
.recommender-material {
14+
.simple-material {
1515
&:last-of-type {
1616
display: none;
1717
}
@@ -72,7 +72,7 @@
7272
}
7373
}
7474

75-
.recommender-material {
75+
.simple-material {
7676
border: 1px solid $c-text-secondary-gray;
7777
padding: 30px;
7878
display: flex;

0 commit comments

Comments
 (0)