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

View file

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

View file

@ -13,9 +13,9 @@ export const messages = defineMessages({
description: "empty headers text", description: "empty headers text",
}, },
acceptedFormat: { acceptedFormat: {
id: "wChjN/", id: "ZJPYFl",
defaultMessage: 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", description: "accepted header names",
}, },
headerName: { headerName: {

View file

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