Refactor, move HTML export to a new file and switch to TypeScript
This commit is contained in:
parent
e59f23880b
commit
dfb7aa4320
3 changed files with 98 additions and 69 deletions
|
@ -32,7 +32,8 @@ import RoomTopic from "../elements/RoomTopic";
|
|||
import RoomName from "../elements/RoomName";
|
||||
import {PlaceCallType} from "../../../CallHandler";
|
||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||
import exportConversationalHistory from '../../../utils/exportUtils';
|
||||
import exportConversationalHistory from '../../../utils/exportUtils/exportUtils';
|
||||
import { exportFormats, exportOptions } from '../../../utils/exportUtils/exportUtils';
|
||||
|
||||
|
||||
@replaceableComponent("views.rooms.RoomHeader")
|
||||
|
@ -120,7 +121,7 @@ export default class RoomHeader extends React.Component {
|
|||
}
|
||||
|
||||
_exportConvertionalHistory = async () => {
|
||||
exportConversationalHistory(this.props.room);
|
||||
exportConversationalHistory(this.props.room, exportFormats.HTML, exportOptions.TIMELINE);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue