// LIBRARIES import React, { Component } from 'react'; import { Menu, Dropdown, notification, Icon, message } from "antd" import { connect } from "react-redux"; // COMPONENTS import AdvanceTable from "components/Tables/AdvanceTable"; import HeaderForm from "components/Forms/HeaderForm"; // HELPER FUNCTIONS import { API_UNI_OIL } from "utils/Api"; import { customAction } from 'actions'; class TermAndPrivacyList extends Component { state= { updating: false, } delete =(admin_uuid)=> { } updateDropDown = async(e) => { } render() { const { match, history } = this.props; return (
history.push({ pathname: `${match.url}/create/1` }) } actionTerms={()=> history.push({ pathname: `${match.url}/create/2` })} actionBtnName="Add User" /> (
{record && record.details}
) }, { title: 'Type', dataIndex: 'type', key: 'type', width: "8%", sorter: true, filters:[], render: (text, record) => ( {record && record.type == 1 ? "Terms": "Privacy"} ) }, { title: 'Action', dataIndex: 'action', key: 'action', width: 150, buttons: [ { key: 'edit', title: "Edit", icon: 'edit', url: '/user-management/edit' }, { key: 'delete', title: "Delete", icon: 'delete', url: '', action: this.delete }, { key: 'view', title: "View", icon: 'right-circle-o', url: '/user-management/view' } ] }, ] } />
); } } TermAndPrivacyList = connect( state => ({ //user: state.viewUser.data, //status: state.viewUser.code, //responseMsg: state.viewUser.messages }), { customAction } )(TermAndPrivacyList); export default TermAndPrivacyList;