MM-50384 : Mark all other menus deprecated (#22609)

Этот коммит содержится в:
M-ZubairAhmed
2023-04-01 00:01:11 +05:30
коммит произвёл GitHub
родитель 9570972571
Коммит 241001f969
7 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@@ -31,6 +31,9 @@ type Props = {
listId?: string;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default class Menu extends React.PureComponent<Props> {
public static Header = MenuHeader
public static Group = MenuGroup

Просмотреть файл

@@ -10,6 +10,9 @@ type Props = {
children?: React.ReactNode;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default class MenuGroup extends React.PureComponent<Props> {
handleDividerClick = (e: React.MouseEvent): void => {
e.preventDefault();

Просмотреть файл

@@ -11,6 +11,9 @@ type Props = {
onClick?: () => void;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default class MenuHeader extends React.PureComponent<Props> {
public render() {
const {children, onClick} = this.props;

Просмотреть файл

@@ -6,6 +6,9 @@ import classNames from 'classnames';
import './menu_item.scss';
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default function menuItem(Component: React.ComponentType<any>) {
type Props = {
show: boolean;

Просмотреть файл

@@ -60,6 +60,9 @@ type State = {
show: boolean;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default class SubMenuItem extends React.PureComponent<Props, State> {
private node: React.RefObject<HTMLLIElement>;

Просмотреть файл

@@ -29,6 +29,9 @@ type State = {
open: boolean;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default class MenuWrapper extends React.PureComponent<Props, State> {
private node: React.RefObject<HTMLDivElement>;

Просмотреть файл

@@ -13,6 +13,9 @@ type Props = {
show: boolean;
}
/**
* @deprecated Use the "webapp/channels/src/components/menu" instead.
*/
export default function MenuWrapperAnimation(props: Props) {
if (isMobile()) {
if (props.show) {