feat(ui) - filters and metrics fixes

This commit is contained in:
Shekar Siri 2022-02-08 18:26:03 +01:00
parent d89cd4f364
commit d8e82b321f
5 changed files with 6 additions and 6 deletions

View file

@ -78,7 +78,7 @@ export default class SaveModal extends React.PureComponent {
/>
<div className="flex items-center cursor-pointer" onClick={ () => this.setState({ 'isPublic' : !isPublic }) }>
<Icon name="user-friends" size="16" />
<span className="ml-2"> Team Funnel</span>
<span className="ml-2"> Team Visible</span>
</div>
</div>
</Form.Field>

View file

@ -4,7 +4,7 @@ const colors = ['#3EAAAF', '#5FBABF', '#7BCBCF', '#96DCDF', '#ADDCDF'];
const colorsx = ['#256669', '#38999e', '#3eaaaf', '#51b3b7', '#78c4c7', '#9fd5d7', '#c5e6e7'].reverse();
const compareColors = ['#394EFF', '#4D5FFF', '#808DFF', '#B3BBFF', '#E5E8FF'];
const compareColorsx = ["#222F99", "#2E3ECC", "#394EFF", "#6171FF", "#8895FF", "#B0B8FF", "#D7DCFF"].reverse();
const customMetricColors = ['#3EAAAF', '#394EFF', '#333333', ];
const customMetricColors = ['#3EAAAF', '#394EFF', '#666666'];
const countView = count => {
const isMoreThanK = count >= 1000;

View file

@ -84,7 +84,7 @@ export default class FunnelSaveModal extends React.PureComponent {
/>
<div className="flex items-center cursor-pointer" onClick={ () => this.props.edit({ 'isPublic' : !funnel.isPublic }) }>
<Icon name="user-friends" size="16" />
<span className="ml-2"> Team Funnel</span>
<span className="ml-2"> Team Visible</span>
</div>
</div>
</Form.Field>

View file

@ -87,12 +87,12 @@ function SaveSearchModal(props: Props) {
/>
<div className="flex items-center cursor-pointer" onClick={ () => props.edit({ 'isPublic' : !savedSearch.isPublic }) }>
<Icon name="user-friends" size="16" />
<span className="ml-2"> Team Search</span>
<span className="ml-2"> Team Visible</span>
</div>
</div>
</Form.Field>
</Form>
{ savedSearch.exists() && <div className="mt-2">Changes in filters will be updated.</div> }
{ savedSearch.exists() && <div className="mt-4">Changes in filters will be updated.</div> }
</Modal.Content>
<Modal.Actions className="flex items-center px-6">
<div className="mr-auto">

View file

@ -29,7 +29,7 @@ const reducer = (state = initialState, action = {}) => {
// })
// );
case FETCH_TRIGGER_OPTIONS.SUCCESS:
return state.set('triggerOptions', action.data.map(({ name, value}) => ({ text: name, value })));
return state.set('triggerOptions', action.data.map(({ name, value }) => ({ text: name, value })));
}
return state;
};