The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/sidebar/header/actions/Sort.js

21 lines
472 B

import { Sidebar } from '@rocket.chat/fuselage';
import React from 'react';
import { popover } from '../../../../app/ui-utils/client';
const config = (e) => ({
template: 'SortList',
currentTarget: e.currentTarget,
data: {
options: [],
},
offsetVertical: e.currentTarget.clientHeight + 10,
});
const onClick = (e) => {
popover.open(config(e));
};
const Sort = (props) => <Sidebar.TopBar.Action {...props} icon='sort' onClick={onClick} />;
export default Sort;