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

feat: bring transaction response type into shared package #1378

Merged
merged 7 commits into from
Jun 19, 2024

Conversation

domin191013
Copy link
Contributor

@domin191013 domin191013 self-assigned this Jun 12, 2024
@github-actions github-actions bot added package: wallet/frontend Wallet frontend implementations package: wallet/backend Wallet backend implementations type: source Source changes labels Jun 12, 2024
Copy link
Member

@beniaminmunteanu beniaminmunteanu left a comment

Choose a reason for hiding this comment

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

LGTM
Mentioning that this approve is provided without starting the local dev in order to see the transactions list displayed in the frontend

# Conflicts:
#	packages/wallet/shared/src/types/index.ts
@domin191013 domin191013 force-pushed the shared-wallet-transaction branch from b2030e1 to e201b80 Compare June 17, 2024 08:37
@domin191013 domin191013 requested a review from dragosp1011 June 18, 2024 10:57
@@ -323,7 +323,7 @@ const TransactionsPage: NextPageWithLayout<TransactionsPageProps> = ({
/>
</Table.Cell>
<Table.Cell className="whitespace-nowrap">
{formatDate({ date: trx.createdAt })}
{formatDate({ date: trx.createdAt.toString() })}
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The type of createdAt in the TransactionResponse interface is Date because it is implemented in the transaction model, but the frontend only accepts a string.

@domin191013 domin191013 requested a review from dragosp1011 June 18, 2024 16:34
@domin191013 domin191013 merged commit 0f46675 into main Jun 19, 2024
15 checks passed
@domin191013 domin191013 deleted the shared-wallet-transaction branch June 19, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: wallet/backend Wallet backend implementations package: wallet/frontend Wallet frontend implementations type: source Source changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] - Share types for transaction
3 participants