-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5202b62
commit 1afa125
Showing
5 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,62 @@ | ||
import MessageForm from "@/components/MessageForm"; | ||
import MessageForm from '@/components/MessageForm'; | ||
|
||
const stories = { | ||
component: MessageForm, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
tags: ['autodocs'], | ||
title: "MessageForm", | ||
} | ||
title: 'MessageForm', | ||
}; | ||
|
||
export const Default = () => <MessageForm message={{ | ||
defaultMessage: 'message.defaultMessage', | ||
id: 'message.id', | ||
params: [], | ||
}} onSave={() => {}} translation="translation" /> | ||
export const Default = () => ( | ||
<MessageForm | ||
message={{ | ||
defaultMessage: 'message.defaultMessage', | ||
id: 'message.id', | ||
params: [], | ||
}} | ||
onSave={() => {}} | ||
translation="translation" | ||
/> | ||
); | ||
|
||
export const LongDefaultMessage = () => <MessageForm message={{ | ||
defaultMessage: 'Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.', | ||
id: 'message.id', | ||
params: [], | ||
}} onSave={() => {}} translation="translation" /> | ||
export const LongDefaultMessage = () => ( | ||
<MessageForm | ||
message={{ | ||
defaultMessage: | ||
'Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.', | ||
id: 'message.id', | ||
params: [], | ||
}} | ||
onSave={() => {}} | ||
translation="translation" | ||
/> | ||
); | ||
|
||
export const LongTranslationString = () => <MessageForm message={{ | ||
defaultMessage: 'defaultMessage', | ||
id: 'message.id', | ||
params: [], | ||
}} onSave={() => {}} translation="Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation." /> | ||
export const LongTranslationString = () => ( | ||
<MessageForm | ||
message={{ | ||
defaultMessage: 'defaultMessage', | ||
id: 'message.id', | ||
params: [], | ||
}} | ||
onSave={() => {}} | ||
translation="Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation." | ||
/> | ||
); | ||
|
||
export const LongDefaultAndTranslation = () => <MessageForm message={{ | ||
defaultMessage: 'Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.', | ||
id: 'message.id', | ||
params: [], | ||
}} onSave={() => {}} translation="Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation." /> | ||
export const LongDefaultAndTranslation = () => ( | ||
<MessageForm | ||
message={{ | ||
defaultMessage: | ||
'Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.', | ||
id: 'message.id', | ||
params: [], | ||
}} | ||
onSave={() => {}} | ||
translation="Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation." | ||
/> | ||
); | ||
|
||
export default stories | ||
export default stories; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters