Skip to content

Commit

Permalink
Merge pull request #739 from ahslr/Hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
abeikverdi authored May 6, 2021
2 parents 467baf2 + afa63b8 commit 08127a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/actions/walletActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ const getParamsByStatus = (status) => {
case 'completed':
return { status: true };
case 'pending':
return { processing: true };
return { waiting: true };
default:
return {};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import React, { useState } from 'react';
import classnames from 'classnames';
import { Select, Form, Row, Button } from 'antd';
import { CaretDownOutlined } from '@ant-design/icons';
import STRINGS from 'config/localizedStrings';
Expand All @@ -22,9 +23,15 @@ const STATUS_OPTIONS = {

const Filters = ({ coins = {}, onSearch, formName }) => {
const [form] = Form.useForm();
const [isSearchShining, setIsSearchShining] = useState(false);

const onFinish = (values) => {
onSearch(values);
setIsSearchShining(false);
};

const onValuesChange = () => {
setIsSearchShining(true);
};

return (
Expand All @@ -33,6 +40,7 @@ const Filters = ({ coins = {}, onSearch, formName }) => {
name={`${formName}-filters`}
className="ant-advanced-search-form"
onFinish={onFinish}
onValuesChange={onValuesChange}
initialValues={{
status: null,
currency: null,
Expand Down Expand Up @@ -94,7 +102,12 @@ const Filters = ({ coins = {}, onSearch, formName }) => {
</Select>
</Form.Item>
<Form.Item>
<Button type="ghost" htmlType="submit" size="small">
<Button
type="ghost"
htmlType="submit"
size="small"
className={classnames({ active_search_button: isSearchShining })}
>
Search
</Button>
</Form.Item>
Expand Down

0 comments on commit 08127a4

Please sign in to comment.