Change cost price placeholder (#1923)

* Change cost price label to cost

* Extract messages

* Update snapshots

* Revert header row label back to cost price
This commit is contained in:
Michał Droń 2022-03-22 14:40:18 +01:00 committed by GitHub
parent 32ddb72002
commit 6b2a34872b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 19 deletions

View file

@ -6869,9 +6869,9 @@
"context": "tabel column header", "context": "tabel column header",
"string": "Selling Price" "string": "Selling Price"
}, },
"src_dot_products_dot_components_dot_ProductVariantPrice_dot_2051669917": { "src_dot_products_dot_components_dot_ProductVariantPrice_dot_2644882304": {
"context": "tabel column header", "context": "tabel column header",
"string": "Cost Price" "string": "Cost"
}, },
"src_dot_products_dot_components_dot_ProductVariantPrice_dot_3211447524": { "src_dot_products_dot_components_dot_ProductVariantPrice_dot_3211447524": {
"context": "info text", "context": "info text",
@ -6884,6 +6884,10 @@
"src_dot_products_dot_components_dot_ProductVariantPrice_dot_4097816011": { "src_dot_products_dot_components_dot_ProductVariantPrice_dot_4097816011": {
"string": "No channels found" "string": "No channels found"
}, },
"src_dot_products_dot_components_dot_ProductVariantPrice_dot_819659341": {
"context": "tabel column header",
"string": "Cost price"
},
"src_dot_products_dot_components_dot_ProductVariantSetDefault_dot_3683859003": { "src_dot_products_dot_components_dot_ProductVariantSetDefault_dot_3683859003": {
"context": "set variant as default, button", "context": "set variant as default, button",
"string": "Set as default" "string": "Set as default"

View file

@ -149,7 +149,7 @@ const ProductVariantPrice: React.FC<ProductVariantPriceProps> = props => {
</TableCell> </TableCell>
<TableCell className={classes.colType}> <TableCell className={classes.colType}>
<FormattedMessage <FormattedMessage
defaultMessage="Cost Price" defaultMessage="Cost price"
description="tabel column header" description="tabel column header"
/> />
</TableCell> </TableCell>
@ -206,7 +206,7 @@ const ProductVariantPrice: React.FC<ProductVariantPriceProps> = props => {
className={classes.input} className={classes.input}
error={!!costPriceError} error={!!costPriceError}
label={intl.formatMessage({ label={intl.formatMessage({
defaultMessage: "Cost Price", defaultMessage: "Cost",
description: "tabel column header" description: "tabel column header"
})} })}
name={`${listing.id}-channel-costPrice`} name={`${listing.id}-channel-costPrice`}

View file

@ -220425,7 +220425,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id" class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id"
scope="col" scope="col"
> >
Cost Price Cost price
</th> </th>
</tr> </tr>
</thead> </thead>
@ -220504,7 +220504,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -220534,7 +220534,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>
@ -220614,7 +220614,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -220644,7 +220644,7 @@ exports[`Storyshots Views / Products / Product variant details attribute errors
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>
@ -222303,7 +222303,7 @@ exports[`Storyshots Views / Products / Product variant details no warehouses 1`]
class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id" class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id"
scope="col" scope="col"
> >
Cost Price Cost price
</th> </th>
</tr> </tr>
</thead> </thead>
@ -222382,7 +222382,7 @@ exports[`Storyshots Views / Products / Product variant details no warehouses 1`]
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -222412,7 +222412,7 @@ exports[`Storyshots Views / Products / Product variant details no warehouses 1`]
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>
@ -222492,7 +222492,7 @@ exports[`Storyshots Views / Products / Product variant details no warehouses 1`]
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -222522,7 +222522,7 @@ exports[`Storyshots Views / Products / Product variant details no warehouses 1`]
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>
@ -224176,7 +224176,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id" class="MuiTableCell-root-id MuiTableCell-head-id ProductVariantPrice-colType-id"
scope="col" scope="col"
> >
Cost Price Cost price
</th> </th>
</tr> </tr>
</thead> </thead>
@ -224255,7 +224255,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -224285,7 +224285,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>
@ -224365,7 +224365,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id" class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id MuiInputLabel-outlined-id MuiFormLabel-filled-id"
data-shrink="true" data-shrink="true"
> >
Cost Price Cost
</label> </label>
<div <div
class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id" class="MuiInputBase-root-id MuiOutlinedInput-root-id MuiInputBase-fullWidth-id MuiInputBase-formControl-id MuiInputBase-adornedEnd-id MuiOutlinedInput-adornedEnd-id"
@ -224395,7 +224395,7 @@ exports[`Storyshots Views / Products / Product variant details when loaded data
class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id" class="PrivateNotchedOutline-legendLabelled-id PrivateNotchedOutline-legendNotched-id"
> >
<span> <span>
Cost Price Cost
</span> </span>
</legend> </legend>
</fieldset> </fieldset>