Skip to content

Commit

Permalink
Merge pull request #829 from factly/chore/update_scooter
Browse files Browse the repository at this point in the history
chore: update scooter version
  • Loading branch information
shreeharsha-factly authored Dec 15, 2022
2 parents b7f7e10 + 1487a52 commit b0ac2a3
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions studio/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@editorjs/quote": "^2.3.0",
"@editorjs/raw": "^2.1.2",
"@editorjs/table": "^1.2.2",
"@factly/scooter": "^0.0.7",
"@factly/scooter": "^0.0.11",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
Expand Down
2 changes: 1 addition & 1 deletion studio/src/components/FormItems/DescriptionInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DescriptionInput = ({
name = 'description',
label = 'Description',
noLabel = false,
onChange = () => console.log({ }),
onChange = () => {},
inputProps,
formItemProps,
initialValue,
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/categories/components/CategoryForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const CategoryForm = ({ onCreate, data = {} }) => {
placeholder: 'Enter Description...',
basic: true,
}}
initialValue={formData.description?.json}
initialValue={formData.description_html}
/>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/claimants/components/ClaimantForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const ClaimantForm = ({ onCreate, data = {} }) => {
placeholder: 'Enter Description...',
basic: true,
}}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/claims/components/ClaimForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const ClaimForm = ({ onCreate, data = {} }) => {
</Form.Item>
<DescriptionInput
inputProps={{ placeholder: 'Enter Description...' }}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
</Panel>
<Panel header="Sources" key="2">
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/episodes/components/EpisodeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const EpisodeForm = ({ onCreate, data = {} }) => {
</Form.Item>
<DescriptionInput
inputProps={{ style: { width: '600px' }, placeholder: 'Enter Description...' }}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
<MetaForm />
<Form.Item {...tailLayout}>
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/fact-checks/components/FactCheckForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function FactCheckForm({ onCreate, data = {}, actions = {}, format }) {
<DescriptionInput
formItemProps={{ className: 'post-description' }}
noLabel
initialValue={data.description?.json}
initialValue={data.description_html}
/>
<Drawer
title={<h4 style={{ fontWeight: 'bold' }}>Post Settings</h4>}
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/podcasts/components/PodcastForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const PodcastForm = ({ onCreate, data = {} }) => {
<DescriptionInput
type="editor"
inputProps={{ style: { width: '600px' }, placeholder: 'Enter Description...' }}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
<MetaForm />
<Form.Item {...tailLayout}>
Expand Down
4 changes: 2 additions & 2 deletions studio/src/pages/posts/components/PostForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import Selector from '../../../components/Selector';
import { maker } from '../../../utils/sluger';
import MediaSelector from '../../../components/MediaSelector';
import { useDispatch, useSelector } from 'react-redux';
import { useDispatch } from 'react-redux';
import { addTemplate } from '../../../actions/posts';
import { useHistory, Prompt } from 'react-router-dom';
import { SettingFilled, LeftOutlined } from '@ant-design/icons';
Expand Down Expand Up @@ -238,7 +238,7 @@ function PostForm({ onCreate, data = {}, actions = {}, format, page = false }) {
<DescriptionInput
type="editor"
formItemProps={{ className: 'post-description' }}
initialValue={data.description?.json}
initialValue={data.description_html}
noLabel
/>
<Drawer
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/ratings/components/RatingForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const RatingForm = ({ onCreate, data = {} }) => {
placeholder: 'Enter Description...',
basic: true,
}}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
</Col>
</Row>
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/tags/components/TagForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const TagForm = ({ onCreate, data = {} }) => {
placeholder: 'Enter Description...',
basic: true,
}}
initialValue={data.description?.json}
initialValue={data.description_html}
/>
</Col>
</Row>
Expand Down

0 comments on commit b0ac2a3

Please sign in to comment.