Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed alert type from text to enum
  • Loading branch information
jonathanalvares9009 committed Oct 29, 2022
commit f21720f9ef0d49d25769ef7b25e6aa9d32f9861c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ const cssTreeOptions: CSSTreeOptions = {

const customTreeOptions: CustomPropsTreeOptions = {
dataTypes: {
alertType: { type: "text" },
alertType: {
type: "enum",
options: ["success", "info", "warning", "error"],
},
title: { type: "text" },
description: { type: "text" },
successIcon: { type: "static_asset" },
Expand Down Expand Up @@ -153,7 +156,6 @@ const compManifest: ReactComponentManifestSchema = {
custom: {
treeId: CustomTreeId,
initialValue: {
alertType: "success",
title: "Alert Title",
description: "Alert Description",
isClosable: true,
Expand Down