Skip to content

Commit 58938b7

Browse files
committed
resolved comments
1 parent 6267fd0 commit 58938b7

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

apps/react-app/src/pods/template-export/components/export-config/export-config.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Props {
1717
}
1818

1919
const DOWNLOAD_MESSAGE_TIMEOUT = 2500;
20-
const DESING_OPTIONS: TemplateCV[] = ['Sith Elegance', 'Galactic CleanTech', 'Monochrome Force'];
20+
const DESIGN_OPTIONS: TemplateCV[] = ['Sith Elegance', 'Galactic CleanTech', 'Monochrome Force'];
2121
const LANGUAGE_OPTIONS: Language[] = ['es', 'en'];
2222

2323
export const ExportConfig: React.FC<Props> = props => {
@@ -73,7 +73,7 @@ export const ExportConfig: React.FC<Props> = props => {
7373
<div className={classes.optionsContainer}>
7474
<div className={classes.optionsContent}>
7575
<div className={classes.selectContainer}>
76-
<CustomSelect listOptions={DESING_OPTIONS} onSelectedOption={handleTemplateChange} label={'Diseño'} />
76+
<CustomSelect listOptions={DESIGN_OPTIONS} onSelectedOption={handleTemplateChange} label={'Diseño'} />
7777
{/* Uncomment when we have all label translations */}
7878
{/* <CustomSelect
7979
listOptions={LANGUAGE_OPTIONS}

export-samples/html/cv-monochrome-force.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,10 +1003,8 @@ <h2 class="title">Educación</h2>
10031003
</main>
10041004
<footer class="footer"></footer>
10051005
<script>
1006-
// Selecciona un elemento del DOM
10071006
const elementInDOM = selector => document.querySelector(selector);
10081007

1009-
// Selecciona un elemento del DOM y comprueba que exista
10101008
const elementReady = selector => {
10111009
const element = elementInDOM(selector);
10121010
if (element && element instanceof HTMLElement) {
@@ -1018,7 +1016,6 @@ <h2 class="title">Educación</h2>
10181016

10191017
// media query event handler (mobile)
10201018
function handleResize() {
1021-
// Selecciona los elementos y comprueba que existan
10221019
const main = elementInDOM('.main');
10231020
const aboutMe = elementInDOM('.about');
10241021
const experience = elementInDOM('.experiencies');
@@ -1030,13 +1027,10 @@ <h2 class="title">Educación</h2>
10301027
const avatar = elementInDOM('.header__avatar');
10311028
const background = elementInDOM('.background');
10321029
const footer = elementInDOM('.footer');
1033-
1034-
// Selecciona las columnas y comprueba que existan
10351030
const columnLeft = elementInDOM('.column-left');
10361031
const columnRight = elementInDOM('.column-right');
10371032

10381033
if (window.innerWidth > 834) {
1039-
// Mueve los elementos a las columnas correspondientes
10401034
aboutMe && columnLeft.appendChild(aboutMe);
10411035
experience && columnLeft.appendChild(experience);
10421036
myLinks && columnRight.appendChild(myLinks);
@@ -1045,7 +1039,6 @@ <h2 class="title">Educación</h2>
10451039
softSkills && columnRight.appendChild(softSkills);
10461040
education && columnRight.appendChild(education);
10471041

1048-
// Comprueba que haya contenido en la colummna izquierda por el grid
10491042
if (columnLeft.children.length === 0) {
10501043
columnLeft.style.display = 'none';
10511044
}
@@ -1057,7 +1050,6 @@ <h2 class="title">Educación</h2>
10571050
background.classList.remove('background--image');
10581051
}
10591052
} else {
1060-
// Mueve los elementos al contenedor
10611053
myLinks && main.appendChild(myLinks);
10621054
aboutMe && main.appendChild(aboutMe);
10631055
hardSkills && main.appendChild(hardSkills);
@@ -1068,10 +1060,8 @@ <h2 class="title">Educación</h2>
10681060
}
10691061
}
10701062

1071-
// Se ejecuta cuando la página cambia de tamaño
10721063
window.addEventListener('resize', handleResize);
10731064

1074-
// Se ejecuta cuando la página está cargada
10751065
document.addEventListener('DOMContentLoaded', handleResize);
10761066
</script>
10771067
</body>

packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ManfredAwesomicCV } from '@/model';
22
import { ProfileSectionVm, RelevantLinkVm, ManfredRelevantLink, PhoneNumbers } from './profile-section.vm';
33

4-
//Sólo afecta al .json de David Bonilla
4+
//Only affects David Bonilla's .json because it's the only one that has the "website" type
55
const mapLinkTypeToVm = (linkType: ManfredRelevantLink['type']): RelevantLinkVm['type'] => {
66
switch (linkType) {
77
case 'website':

0 commit comments

Comments
 (0)