less ids
This commit is contained in:
parent
fa0b56d2a6
commit
d836c67c58
2 changed files with 2 additions and 7 deletions
|
|
@ -221,7 +221,7 @@
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#create-offer-controls {
|
.create-offer-controls {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
max-height: 800px;
|
max-height: 800px;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ const PopupNotification = require('../components/PopupNotification');
|
||||||
const offerService = require('../services/offerService');
|
const offerService = require('../services/offerService');
|
||||||
|
|
||||||
class CreateOfferModal {
|
class CreateOfferModal {
|
||||||
// Stop relying on IDs
|
|
||||||
constructor({ parentElement, onCreationCallback, offerService }) {
|
constructor({ parentElement, onCreationCallback, offerService }) {
|
||||||
this.element = null;
|
this.element = null;
|
||||||
this.parentElement = parentElement;
|
this.parentElement = parentElement;
|
||||||
|
|
@ -35,15 +34,13 @@ class CreateOfferModal {
|
||||||
render() {
|
render() {
|
||||||
const modalRoot = document.createElement('div');
|
const modalRoot = document.createElement('div');
|
||||||
this.element = modalRoot;
|
this.element = modalRoot;
|
||||||
modalRoot.id = 'create-offer-modal-root';
|
|
||||||
modalRoot.className = 'full-screen-modal-background';
|
modalRoot.className = 'full-screen-modal-background';
|
||||||
|
|
||||||
const modal = document.createElement('div');
|
const modal = document.createElement('div');
|
||||||
modal.className = 'full-screen-modal';
|
modal.className = 'full-screen-modal';
|
||||||
modal.id = 'create-offer-root';
|
|
||||||
|
|
||||||
const controls = document.createElement('div');
|
const controls = document.createElement('div');
|
||||||
controls.id = 'create-offer-controls';
|
controls.className = 'create-offer-controls';
|
||||||
|
|
||||||
const title = document.createElement('h2');
|
const title = document.createElement('h2');
|
||||||
title.textContent = 'Añade los detalles de tu oferta';
|
title.textContent = 'Añade los detalles de tu oferta';
|
||||||
|
|
@ -94,7 +91,6 @@ class CreateOfferModal {
|
||||||
});
|
});
|
||||||
|
|
||||||
const amountDiv = document.createElement('div');
|
const amountDiv = document.createElement('div');
|
||||||
amountDiv.id = 'amount-area';
|
|
||||||
amountDiv.className = 'create-offer-step';
|
amountDiv.className = 'create-offer-step';
|
||||||
const amountHeading = document.createElement('h3');
|
const amountHeading = document.createElement('h3');
|
||||||
amountHeading.textContent = '¿Cuánto?';
|
amountHeading.textContent = '¿Cuánto?';
|
||||||
|
|
@ -334,7 +330,6 @@ function offersPage() {
|
||||||
tradeDescDiv.append(youBuyData);
|
tradeDescDiv.append(youBuyData);
|
||||||
|
|
||||||
const youSellText = document.createElement('p');
|
const youSellText = document.createElement('p');
|
||||||
youSellText.id = 'you-sell-title';
|
|
||||||
youSellText.classList.add('offer-card-content-title');
|
youSellText.classList.add('offer-card-content-title');
|
||||||
youSellText.innerText = 'Vendes';
|
youSellText.innerText = 'Vendes';
|
||||||
tradeDescDiv.append(youSellText);
|
tradeDescDiv.append(youSellText);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue