Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Redundant Save Button #1024

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

inesmrad
Copy link
Contributor

Description

In the create invoice form , there exists two save buttons having the same functionality .I deleted one of the redundant save buttons.

Screenshots (if applicable)

Before:
Screenshot (616)
After:
Screenshot (617)

Checklist

  • I have tested these changes
  • I have updated the relevant documentation
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the codebase
  • My changes generate no new warnings or errors
  • The title of my pull request is clear and descriptive

Copy link

@Skanderloueti Skanderloueti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Please review the changes

Comment on lines 219 to +220
<Row gutter={[12, -5]}>
<Col className="gutter-row" span={5}>
<Form.Item>
<Button type="primary" htmlType="submit" icon={<PlusOutlined />} block>
{translate('Save')}
</Button>
</Form.Item>
</Col>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you delete a Col you should review the spacing provided by the gutter property in the Row.

@@ -191,6 +192,7 @@ export default function DataTable({ config, extra = [] }) {
onChange={filterTable}
placeholder={translate('search')}
allowClear
suffix={<SearchOutlined />}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is out of the PR topic. I quote from contribution guidelines "Do not include changes that are not related to the issue at hand."
You can read the contribution guidelines here https://github.com/idurar/idurar-erp-crm/blob/master/CONTRIBUTING.md#how-to-contribute

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this actually got commited by mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants