Skip to content

Commit

Permalink
style: change snake case to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
0x29a committed Jul 19, 2021
1 parent a503591 commit e8440f8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions src/discussions/posts/post-editor/PostEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ function PostEditor({ intl }) {
{intl.formatMessage(messages.type)}
</Form.Label>
<Form.Text className="mb-3" muted>
{intl.formatMessage(messages.type_description)} ({intl.formatMessage(messages.required)})
{intl.formatMessage(messages.typeDescription)} ({intl.formatMessage(messages.required)})
</Form.Text>

<Form.Check inline type="radio" id="question">
<Form.Check.Input type="radio" />
<Form.Check.Label>
<FontAwesomeIcon icon={faQuestion} />
<span className="ml-2">{intl.formatMessage(messages.question_type)}</span>
<span className="ml-2">{intl.formatMessage(messages.questionType)}</span>
</Form.Check.Label>
</Form.Check>

<Form.Check inline type="radio" id="discussion">
<Form.Check.Input type="radio" />
<Form.Check.Label>
<FontAwesomeIcon icon={faComments} />
<span className="ml-2">{intl.formatMessage(messages.discussion_type)}</span>
<span className="ml-2">{intl.formatMessage(messages.discussionType)}</span>
</Form.Check.Label>
</Form.Check>
</Form.Group>

<Form.Group>
<Form.Label>
{intl.formatMessage(messages.topic_area)}
{intl.formatMessage(messages.topicArea)}
</Form.Label>
<Form.Text id="topicAreaInput" muted>
{intl.formatMessage(messages.topic_area_description)} ({intl.formatMessage(messages.required)})
{intl.formatMessage(messages.topicAreaDescription)} ({intl.formatMessage(messages.required)})
</Form.Text>
<Form.Control
as="select"
Expand All @@ -62,14 +62,14 @@ function PostEditor({ intl }) {
{intl.formatMessage(messages.title)}
</Form.Label>
<Form.Text id="titleInput" muted>
{intl.formatMessage(messages.title_description)} ({intl.formatMessage(messages.required)})
{intl.formatMessage(messages.titleDescription)} ({intl.formatMessage(messages.required)})
</Form.Text>
<Form.Control type="text" aria-describedby="titleInput" />
</Form.Group>

<Form.Group>
<Form.Label>
{intl.formatMessage(messages.question_text)}
{intl.formatMessage(messages.questionText)}
</Form.Label>
<Form.Control as="textarea" rows="3" />
</Form.Group>
Expand All @@ -79,14 +79,14 @@ function PostEditor({ intl }) {
<Form.Check.Input type="checkbox" />
<Form.Check.Label>
<FontAwesomeIcon icon={faStar} />
<span className="ml-2">{intl.formatMessage(messages.follow_post)}</span>
<span className="ml-2">{intl.formatMessage(messages.followPost)}</span>
</Form.Check.Label>
</Form.Check>

<Form.Check inline type="checkbox" id="anonymous">
<Form.Check.Input type="checkbox" />
<Form.Check.Label>
<span className="ml-2">{intl.formatMessage(messages.anonymous_post)}</span>
<span className="ml-2">{intl.formatMessage(messages.anonymousPost)}</span>
</Form.Check.Label>
</Form.Check>
</Form.Group>
Expand Down
36 changes: 18 additions & 18 deletions src/discussions/posts/post-editor/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,52 @@ const messages = defineMessages({
id: 'discussions.post.editor.type',
defaultMessage: 'Post type',
},
type_description: {
id: 'discussions.post.editor.type_description',
typeDescription: {
id: 'discussions.post.editor.typeDescription',
defaultMessage: 'Questions raise issues that need answers. Discussions share ideas and start conversations.',
},
required: {
id: 'discussions.post.editor.required',
defaultMessage: 'Required',
},
question_type: {
id: 'discussions.post.editor.question_type',
questionType: {
id: 'discussions.post.editor.questionType',
defaultMessage: 'Question',
},
discussion_type: {
id: 'discussions.post.editor.discussion_type',
discussionType: {
id: 'discussions.post.editor.discussionType',
defaultMessage: 'Discussion',
},
topic_area: {
id: 'discussions.post.editor.topic_area',
topicArea: {
id: 'discussions.post.editor.topicArea',
defaultMessage: 'Topic area',
},
topic_area_description: {
id: 'discussions.post.editor.topic_area_description',
topicAreaDescription: {
id: 'discussions.post.editor.topicAreaDescription',
defaultMessage: 'Add your post to a relevant topic to help others find it.',
},
title: {
id: 'discussions.post.editor.title',
defaultMessage: 'Title',
},
title_description: {
id: 'discussions.post.editor.title_description',
titleDescription: {
id: 'discussions.post.editor.titleDescription',
defaultMessage: 'Add a clear and descriptive title to encourage participation.',
},
question_text: {
id: 'discussions.post.editor.question_text',
questionText: {
id: 'discussions.post.editor.questionText',
defaultMessage: 'Your question or idea (required)',
},
preview: {
id: 'discussions.post.editor.preview',
defaultMessage: 'Preview',
},
follow_post: {
id: 'discussions.post.editor.follow_post',
followPost: {
id: 'discussions.post.editor.followPost',
defaultMessage: 'follow this post',
},
anonymous_post: {
id: 'discussions.post.editor.anonymous_post',
anonymousPost: {
id: 'discussions.post.editor.anonymousPost',
defaultMessage: 'post anonymously',
},
submit: {
Expand Down

0 comments on commit e8440f8

Please sign in to comment.