mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix: updated the default data of the custom component (#13024)
This commit is contained in:
parent
bf474466d2
commit
39550063e2
2 changed files with 6 additions and 6 deletions
|
|
@ -37,9 +37,9 @@ export const customComponentConfig = {
|
|||
value: `{{{ title: 'Hi! There', buttonText: 'Update Title'}}}`,
|
||||
},
|
||||
code: {
|
||||
value: `import React from 'https://cdn.skypack.dev/react';
|
||||
import ReactDOM from 'https://cdn.skypack.dev/react-dom';
|
||||
import { Button, Container } from 'https://cdn.skypack.dev/@material-ui/core';
|
||||
value: `import React from 'https://esm.sh/react@17.0.2';
|
||||
import ReactDOM from 'https://esm.sh/react-dom@17.0.2';
|
||||
import { Button, Container } from 'https://esm.sh/@material-ui/core@4.12.4?deps=react@17.0.2';
|
||||
const MyCustomComponent = ({data, updateData, runQuery}) => (
|
||||
<Container>
|
||||
<h1>{data.title}</h1>
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ export const customComponentConfig = {
|
|||
value: `{{{ title: 'Hi! There', buttonText: 'Update Title'}}}`,
|
||||
},
|
||||
code: {
|
||||
value: `import React from 'https://cdn.skypack.dev/react';
|
||||
import ReactDOM from 'https://cdn.skypack.dev/react-dom';
|
||||
import { Button, Container } from 'https://cdn.skypack.dev/@material-ui/core';
|
||||
value: `import React from 'https://esm.sh/react@17.0.2';
|
||||
import ReactDOM from 'https://esm.sh/react-dom@17.0.2';
|
||||
import { Button, Container } from 'https://esm.sh/@material-ui/core@4.12.4?deps=react@17.0.2';
|
||||
const MyCustomComponent = ({data, updateData, runQuery}) => (
|
||||
<Container>
|
||||
<h1>{data.title}</h1>
|
||||
|
|
|
|||
Loading…
Reference in a new issue