Skip to content

Commit

Permalink
static/Modal.jsx: refactor and adapt to mB redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
hom3mad3 committed Jan 29, 2025
1 parent 7a39d8c commit 1bf3785
Show file tree
Hide file tree
Showing 11 changed files with 332 additions and 713 deletions.
9 changes: 4 additions & 5 deletions adhocracy4/comments/static/comments/Comment.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const React = require('react')
const django = require('django')

const { default: Modal } = require('../../../static/Modal')
const ReportModal = require('../../../reports/static/reports/react_reports').ReportModal
const RatingBox = require('../../../ratings/static/ratings/RatingBox')
const Modal = require('../../../static/Modal')
const CommentEditForm = require('./CommentEditForm')
const CommentForm = require('./CommentForm')
const CommentManageDropdown = require('./CommentManageDropdown')

const React = require('react')
const django = require('django')

const safeHtml = function (text) {
return { __html: text }
}
Expand Down Expand Up @@ -156,7 +156,6 @@ class Comment extends React.Component {
if (this.isOwner() || this.context.isModerator) {
return (
<Modal
name={'comment_delete_' + this.props.id}
partials={{
title: deleteTag,
description: confirmDeleteText
Expand Down
Loading

0 comments on commit 1bf3785

Please sign in to comment.