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