Skip to content

Commit

Permalink
The name of the class 'bank' changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
paula0403 committed Feb 5, 2021
1 parent f1e3875 commit c9f4227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/components/BankBoard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ export class BankBoard {
/* returns Bank board with animals and counts */
renderBankBoard(bank: Bank): HTMLElement {
const bankView: HTMLElement = Render.elementFactory('div', {
className: 'bank',
className: 'bank__board',
});
const bankHerd = bank.theHerd.theAnimals.map(
([animal, count]) => [animal.theImagePath, count],
);
const bankImagesAndCounts: HTMLElement[][] = bankHerd.map(
([pathElement, countElement]) => {
const animalImg: HTMLElement = Render.elementFactory('img', {
className: 'bank__img',
className: 'bank__board__img',
src: `${pathElement}`,
});
const animalCount: HTMLElement = Render.elementFactory(
'div',
{ className: 'bank__count' },
{ className: 'bank__board__count' },
`x${countElement}`,
);

Expand Down
2 changes: 1 addition & 1 deletion styles/components/_bankBoard.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.bank {
.bank__board {
display: flex;
align-items: center;
&__img {
Expand Down

0 comments on commit c9f4227

Please sign in to comment.