ref: Creating popups with hook, fix translation keys passing

This commit is contained in:
Maksim Eltyshev
2023-01-24 18:53:13 +01:00
parent 6fd42e3b62
commit d975b2d07a
69 changed files with 309 additions and 332 deletions

View File

@@ -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>