Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
remove overridestrings
Browse files Browse the repository at this point in the history
  • Loading branch information
pKorsholm committed Feb 16, 2022
1 parent 4c03a1f commit 12cf4d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/components/molecules/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type MultiSelectProps = {
hasSelectAll?: boolean
isLoading?: boolean
shouldToggleOnHover?: boolean
overrideStrings?: object
onChange: (values: any[] | any) => void
disabled?: boolean
enableSearch?: boolean
Expand Down Expand Up @@ -196,7 +195,6 @@ const SSelect = React.forwardRef(
isMultiSelect,
hasSelectAll,
enableSearch = false,
overrideStrings,
clearSelected = false,
isCreatable,
filterOptions,
Expand Down
4 changes: 2 additions & 2 deletions src/domain/orders/details/claim/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const ClaimMenu = ({ order, onCreate, onDismiss, toaster }) => {
clearSelected
label="Shipping Method"
className="mt-2"
overrideStrings={{ search: "Add a shipping method" }}
placeholder="Add a shipping method"
value={
returnShippingMethod
? {
Expand Down Expand Up @@ -531,7 +531,7 @@ const ClaimMenu = ({ order, onCreate, onDismiss, toaster }) => {
<Select
label="Shipping Method"
className="mt-2"
overrideStrings={{ search: "Add a shipping method" }}
placeholder="Add a shipping method"
value={
shippingMethod
? {
Expand Down
4 changes: 2 additions & 2 deletions src/domain/orders/details/returns/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const ReturnMenu = ({ order, onDismiss, toaster }) => {
const items = Object.entries(toReturn).map(([key, value]) => {
const toSet = {
reason_id: value.reason?.value.id,
...value
...value,
}
delete toSet.reason
const clean = removeNullish(toSet)
Expand Down Expand Up @@ -165,7 +165,7 @@ const ReturnMenu = ({ order, onDismiss, toaster }) => {
<Select
label="Shipping Method"
className="mt-2"
overrideStrings={{ search: "Add a shipping method" }}
placeholder="Add a shipping method"
value={shippingMethod}
onChange={handleShippingSelected}
options={shippingOptions.map((o) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/domain/orders/details/swap/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const SwapMenu = ({ order, onCreate, onDismiss, toaster }) => {
<Select
label="Shipping Method"
className="mt-2"
overrideStrings={{ search: "Add a shipping method" }}
placeholder="Add a shipping method"
value={shippingMethod}
onChange={handleShippingSelected}
options={shippingOptions.map((o) => ({
Expand Down

0 comments on commit 12cf4d1

Please sign in to comment.