-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings #1
base: main
Are you sure you want to change the base?
Settings #1
Conversation
…s not shown at tech cards when there is none.
|
||
function changeTheme(toTheme) { | ||
let fromTheme; | ||
toTheme == 'light' ? fromTheme = 'dark' : fromTheme = 'light' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
una asignación con el ternary operator se suele hacer así:
fromTheme = toTheme == 'light' ? 'dark' : 'light'
const premierePro = new Hardskill ('Premiere Pro', 5, ['None']); | ||
const blender = new Hardskill ('Blender', 5, ['None']); | ||
|
||
const hardSkills = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
para evitar hacer el find abajo esto podría ser un dict, donde las keys sean los names de las Hardskill:
html5.name: html5
después abajo haces:
let reqTech = hardSkills[techName];
</div> | ||
`; | ||
|
||
if (mentionContent == 'None') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esto quizá quede más limpio si pones lista vacía en las hardskill.related en lugar de None, ejemplo:
const react = new Hardskill ('React JS', 1, []);
y después haces:
if (reqTech.related.length == 0) { ... }
No description provided.