Skip to content

Commit

Permalink
fix: missing inquiry modal title (#10503)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskounen authored Jul 19, 2024
1 parent 27c37c8 commit 27bc69b
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ describe("ArtworkCommercialButtons", () => {

const state: ArtworkInquiryContextState = {
shippingLocation: null,
inquiryType: null,
message: null,
inquiryQuestions: [],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const mockDispatch = jest.fn()

const initialState = {
shippingLocation: null,
inquiryType: null,
message: null,
inquiryQuestions: [],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const InquiryModal: React.FC<InquiryModalProps> = ({ artwork, ...props })
rightButtonDisabled={state.inquiryQuestions.length === 0}
onRightButtonPress={sendInquiry}
>
{state.inquiryType}
Contact Gallery
</FancyModalHeader>
{!!mutationError && (
<ErrorMessageFlex bg="red100" py={1} alignItems="center">
Expand Down
4 changes: 0 additions & 4 deletions src/app/utils/ArtworkInquiry/ArtworkInquiryStore.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe("selectInquiryQuestion", () => {
it("when a question is checked it pushes that question into the inquiryQuestions array", () => {
inquiryState = {
shippingLocation: null,
inquiryType: null,
inquiryQuestions: [],
message: null,
}
Expand All @@ -32,7 +31,6 @@ describe("selectInquiryQuestion", () => {

expect(r).toEqual({
shippingLocation: null,
inquiryType: null,
inquiryQuestions: [{ questionID: "condition_and_provenance", details: null }],
message: null,
})
Expand All @@ -41,7 +39,6 @@ describe("selectInquiryQuestion", () => {
it("when a question is deselected it gets removed from the inquiryQuestions array", () => {
inquiryState = {
shippingLocation: null,
inquiryType: "Inquire to purchase",
inquiryQuestions: [
{
questionID: "shipping_quote",
Expand All @@ -68,7 +65,6 @@ describe("selectInquiryQuestion", () => {

expect(r).toEqual({
shippingLocation: null,
inquiryType: "Inquire to purchase",
inquiryQuestions: [{ questionID: "shipping_quote", details: null }],
message: null,
})
Expand Down
1 change: 0 additions & 1 deletion src/app/utils/ArtworkInquiry/ArtworkInquiryStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { createContext, Reducer, useReducer } from "react"

const initialArtworkInquiryState: ArtworkInquiryContextState = {
shippingLocation: null,
inquiryType: null,
inquiryQuestions: [],
message: null,
}
Expand Down
1 change: 0 additions & 1 deletion src/app/utils/ArtworkInquiry/ArtworkInquiryTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface ArtworkInquiryContextProps {
}

export interface ArtworkInquiryContextState {
readonly inquiryType: InquiryTypes | null
readonly shippingLocation: LocationWithDetails | null
readonly inquiryQuestions: InquiryQuestionInput[]
readonly message: string | null
Expand Down

0 comments on commit 27bc69b

Please sign in to comment.