-
Notifications
You must be signed in to change notification settings - Fork 160
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
Refactor Order/Slot models #1407
Conversation
70b9b9f
to
9008e98
Compare
@@ -102,9 +98,6 @@ const BookPage = (): JSX.Element => { | |||
> | |||
<Box sx={{ maxWidth: '18em', padding: '0.5em' }}> | |||
<MakerForm | |||
onOrderCreated={(id) => { | |||
navigate(`/order/${id}`); | |||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reported bug
onOrderCreated={(shortAlias, id) => { | ||
setCurrentOrderId({ id, shortAlias }); | ||
navigate(`/order/${shortAlias}/${id}`); | ||
}} | ||
disableRequest={matches.length > 0 && !showMatches} | ||
collapseAll={showMatches} | ||
onSubmit={() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
export type { Book, PublicOrder } from './Book.model'; | ||
export type { Slot } from './Garage.model'; | ||
export type { Language } from './Settings.model'; | ||
export type { Favorites } from './Favorites.model'; | ||
export type { Contact, Info, Version, Origin } from './Coordinator.model'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
@@ -1,7 +1,5 @@ | |||
import React, { useState, useEffect, useContext } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
@@ -20,7 +20,6 @@ interface ChatPromptProps { | |||
loadingReceived: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
@@ -7,7 +7,6 @@ interface Props { | |||
order: Order; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
@@ -36,7 +36,6 @@ interface Props { | |||
makerHashId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up
9054b87
to
f9244e1
Compare
afe699a
to
a92ca62
Compare
Tested and working. And several minor bugs fixed! |
What does this PR do?
Changes on this PR:
CurrentOrder
(visited order on the order page) andActiveOrder
/LastOrder
(orders associated to the slot)...UpdatedAt
variables and keep onlyslotUpdatedAt
andfederationUpdatedAt
Checklist before merging
pip install pre-commit
, thenpre-commit install
. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.