Skip to content

Commit

Permalink
pr revision
Browse files Browse the repository at this point in the history
Signed-off-by: Max You <[email protected]>
  • Loading branch information
Max You authored and Max You committed Aug 12, 2024
1 parent 7c95aae commit 06d5121
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const componentInfo: ComponentInfo = {
@Input() ${nameStringToVariableString(json.codeContext?.name)}NotificationObj: any = {
type: "${json.kind ? json.kind : 'error'}",
title: "${json.title ? json.title : ''}",
message: "${json.caption ? json.caption : ''}",
message: "${json.subtitle ? json.subtitle : ''}",
lowContrast: ${!!json.lowContrast},
showClose: ${!!json.closeButtonHidden}
};`,
Expand All @@ -154,7 +154,7 @@ export const componentInfo: ComponentInfo = {
@Input() ${nameStringToVariableString(json.codeContext?.name)}NotificationObj: any = {
type: "${json.kind ? json.kind : 'error'}",
title: "${json.title ? json.title : ''}",
message: "${json.caption ? json.caption : ''}",
message: "${json.subtitle ? json.subtitle : ''}",
lowContrast: ${!!json.lowContrast},
showClose: ${!!json.closeButtonHidden}
};`,
Expand All @@ -173,7 +173,7 @@ export const componentInfo: ComponentInfo = {
kind="${json.kind ? json.kind : 'error'}"
hideCloseButton={${!!json.closeButtonHidden}}
lowContrast={${!!json.lowContrast}}
${json.subtitle ? `subtitle={<span>${json.subtitle}</span>}`: ''}
${json.subtitle ? `subtitle="${json.subtitle}"`: ''}
title="${json.title ? json.title : ''}"
onClose={(selectedItem) => handleInputChange({
target: {
Expand All @@ -189,7 +189,7 @@ export const componentInfo: ComponentInfo = {
kind="${json.kind ? json.kind : 'error'}"
hideCloseButton={${!!json.closeButtonHidden}}
lowContrast={${!!json.lowContrast}}
${json.subtitle ? `subtitle={<span>${json.subtitle}</span>}`: ''}
${json.subtitle ? `subtitle="${json.subtitle}"`: ''}
title="${json.title ? json.title : ''}"
onClose={(selectedItem) => handleInputChange({
target: {
Expand Down

0 comments on commit 06d5121

Please sign in to comment.