mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 01:11:40 +03:00
ref: Creating popups with hook, fix translation keys passing
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import React, { useCallback } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Button, Icon, Radio, Table } from 'semantic-ui-react';
|
||||
import { usePopup } from '../../../lib/popup';
|
||||
|
||||
import ActionsPopup from './ActionsPopup';
|
||||
import ActionsStep from './ActionsStep';
|
||||
import User from '../../User';
|
||||
|
||||
import styles from './Item.module.scss';
|
||||
@@ -34,6 +35,8 @@ const Item = React.memo(
|
||||
});
|
||||
}, [isAdmin, onUpdate]);
|
||||
|
||||
const ActionsPopup = usePopup(ActionsStep);
|
||||
|
||||
return (
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
|
||||
Reference in New Issue
Block a user