* feat(ui) - funnel filters replaced with new filter * feat(ui) - funnel filters - removed logs
27 lines
No EOL
766 B
TypeScript
27 lines
No EOL
766 B
TypeScript
import React, { useState } from 'react';
|
|
import { IconButton } from 'UI';
|
|
import FunnelSaveModal from 'App/components/Funnels/FunnelSaveModal';
|
|
import { connect } from 'react-redux';
|
|
import { save } from 'Duck/funnels';
|
|
|
|
interface Props {
|
|
save: typeof save;
|
|
loading: boolean;
|
|
}
|
|
function UpdateFunnelButton(props: Props) {
|
|
const { loading } = props;
|
|
return (
|
|
<div>
|
|
<IconButton
|
|
className="mr-2"
|
|
disabled={loading}
|
|
onClick={() => props.save()} primaryText label="UPDATE FUNNEL" icon="funnel"
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default connect(state => ({
|
|
loading: state.getIn(['funnels', 'saveRequest', 'loading']) ||
|
|
state.getIn(['funnels', 'updateRequest', 'loading']),
|
|
}), { save })(UpdateFunnelButton); |