mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
ref: Creating popups with hook, fix translation keys passing
This commit is contained in:
parent
6fd42e3b62
commit
d975b2d07a
69 changed files with 309 additions and 332 deletions
|
@ -2,8 +2,9 @@ import React, { useCallback } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Modal, Table } from 'semantic-ui-react';
|
||||
import { usePopup } from '../../lib/popup';
|
||||
|
||||
import UserAddPopupContainer from '../../containers/UserAddPopupContainer';
|
||||
import UserAddStepContainer from '../../containers/UserAddStepContainer';
|
||||
import Item from './Item';
|
||||
|
||||
const UsersModal = React.memo(
|
||||
|
@ -77,6 +78,8 @@ const UsersModal = React.memo(
|
|||
[onDelete],
|
||||
);
|
||||
|
||||
const UserAddPopupContainer = usePopup(UserAddStepContainer);
|
||||
|
||||
return (
|
||||
<Modal open closeIcon size="large" centered={false} onClose={onClose}>
|
||||
<Modal.Header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue