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

Expense module remaining work #1706

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

Shruti-Apte
Copy link
Contributor

Notion:

What:

  • Search expense
  • Upload and Download multiple receipts
  • Create vendor functionality
  • Removed static expense summary component
  • Small UI changes

app/javascript/src/apis/expenses.ts Outdated Show resolved Hide resolved
app/javascript/src/components/Expenses/Details/index.tsx Outdated Show resolved Hide resolved
handleEdit={handleEdit}
/>
<Expense currency={company.base_currency} expense={expense} />
{!isDesktop && showEditExpenseModal ? null : (
Copy link
Contributor

Choose a reason for hiding this comment

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

use && and remove null by altering condition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this can not be refactored, If we use the altering condition, it breaks on mobile view.
Returning null is necessary here.

Gemfile.lock Outdated Show resolved Hide resolved
Copy link
Contributor

@nisusam nisusam left a comment

Choose a reason for hiding this comment

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

Fix the failing spec

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

Successfully merging this pull request may close these issues.

None yet

4 participants