From 3c1628f412c47e5f5cedc854caf5dc0a24e04761 Mon Sep 17 00:00:00 2001 From: hom3mad3 <8156337+hom3mad3@users.noreply.github.com> Date: Tue, 17 Dec 2024 18:52:01 +0100 Subject: [PATCH] static/Alert.jsx: refactor and improve semantic --- .../static/comments_async/comment.jsx | 4 +- .../PollDashboard/EditPollManagement.jsx | 2 - adhocracy4/static/Alert.jsx | 50 +++++++++++-------- adhocracy4/static/__tests__/Alert.jest.jsx | 2 +- changelog/_8471.md | 2 + 5 files changed, 34 insertions(+), 26 deletions(-) create mode 100644 changelog/_8471.md diff --git a/adhocracy4/comments_async/static/comments_async/comment.jsx b/adhocracy4/comments_async/static/comments_async/comment.jsx index 6f64d992b..3c8f0b5e2 100644 --- a/adhocracy4/comments_async/static/comments_async/comment.jsx +++ b/adhocracy4/comments_async/static/comments_async/comment.jsx @@ -11,6 +11,7 @@ import CommentList from './comment_list' import { ModeratorFeedback } from './moderator_feedback' import AiReport from './ai_report' import RatingBox from '../../../ratings/static/ratings/RatingBox' +import Alert from '../../../static/Alert' const translated = { reportTitle: django.gettext('You want to report this content? Your message will be sent to the moderation. The moderation will look at the reported content. The content will be deleted if it does not meet our discussion rules (netiquette).'), @@ -309,8 +310,7 @@ export default class Comment extends React.Component { return (