Skip to content
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

refactor(various): various changes #11

Merged
merged 10 commits into from
Aug 27, 2024
Merged

refactor(various): various changes #11

merged 10 commits into from
Aug 27, 2024

Conversation

LAMM26
Copy link
Collaborator

@LAMM26 LAMM26 commented Aug 26, 2024

Changements dans quelques composants:

  • Nettoyage dans Bouton
  • Nettoyage dans Breadcumbs
  • Ajustements icône external-link
  • Vérification longueur message alert

@LAMM26 LAMM26 self-assigned this Aug 26, 2024
@alecarn alecarn self-requested a review August 26, 2024 18:50
Copy link
Contributor

@alecarn alecarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supprimer les log avant de merger

Copy link
Contributor

@alecarn alecarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, supprimer le console.log

Comment on lines 46 to 58
if (this.isCloseable()) {
if (message.length > 105) {
return `${message.slice(0, 105)}...`;
}

return message;
} else {
if (message.length > 120) {
return `${message.slice(0, 120)}...`;
}

return message;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On pourrait améliorer la lisbilité en utilisant les "early return" pour éviter les conditions imbriqués

Suggested change
if (this.isCloseable()) {
if (message.length > 105) {
return `${message.slice(0, 105)}...`;
}
return message;
} else {
if (message.length > 120) {
return `${message.slice(0, 120)}...`;
}
return message;
}
if (this.isCloseable() && message.length > 105) {
return `${message.slice(0, 105)}...`;
}
if (message.length > 120) {
return `${message.slice(0, 120)}...`;
}
return message;

@@ -49,6 +67,9 @@ export class AlertComponent {
}

onClose() {
if (this.isCloseable()) {
console.log('hello');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supprimer les console.log

@alecarn alecarn self-requested a review August 27, 2024 14:36
@LAMM26 LAMM26 merged commit 5ce3c96 into next Aug 27, 2024
3 checks passed
@LAMM26 LAMM26 deleted the changes branch August 27, 2024 14:45
@alecarn
Copy link
Contributor

alecarn commented Aug 27, 2024

🎉 This PR is included in version 1.0.0-next.17 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants