Fix webhook details (#3334)

This commit is contained in:
Krzysztof Żuraw 2023-03-14 13:38:58 +01:00 committed by GitHub
parent 5b945162a7
commit 05ea511937
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 9 deletions

View file

@ -5171,6 +5171,10 @@
"ZIc5lM": {
"string": "Product Name"
},
"ZJPYFl": {
"context": "accepted header names",
"string": "Headers with in following format are accepted: <code>authorization*</code>, <code>x-*</code>"
},
"ZKuzRy": {
"context": "order history message",
"string": "Transaction void requested"
@ -8148,10 +8152,6 @@
"context": "see error log label in notification",
"string": "See error log"
},
"wChjN/": {
"context": "accepted header names",
"string": "Headers with in following format are accepted: `authorization*`, `x-*`"
},
"wDUBLR": {
"context": "order refund amount",
"string": "Proposed refund amount"

View file

@ -106,7 +106,12 @@ const WebhookHeaders: React.FC<WebhookHeadersProps> = ({
<>
<CardContent>
<Typography variant="body2">
<FormattedMessage {...messages.acceptedFormat} />
<FormattedMessage
{...messages.acceptedFormat}
values={{
code: (...chunks) => <code>${chunks}</code>,
}}
/>
</Typography>
</CardContent>

View file

@ -13,9 +13,9 @@ export const messages = defineMessages({
description: "empty headers text",
},
acceptedFormat: {
id: "wChjN/",
id: "ZJPYFl",
defaultMessage:
"Headers with in following format are accepted: `authorization*`, `x-*`",
"Headers with in following format are accepted: <code>authorization*</code>, <code>x-*</code>",
description: "accepted header names",
},
headerName: {

View file

@ -14,7 +14,7 @@ const useStyles = makeStyles(
return {
tableCell: {
paddingTop: theme.spacing(3),
paddingLeft: theme.spacing(1),
paddingLeft: "3.2rem !important",
paddingRight: theme.spacing(1),
"& .MuiFormHelperText-root": {
@ -29,7 +29,7 @@ const useStyles = makeStyles(
colAction: {
"&:last-child": {
...colAction,
paddingRight: theme.spacing(3),
paddingRight: "3.2rem",
},
},
colActionHeader: {