-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19883 from code-dot-org/staging
DTT (Staging > Test) [robo-dtt]
- Loading branch information
Showing
61 changed files
with
1,290 additions
and
769 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
44 changes: 44 additions & 0 deletions
44
apps/src/code-studio/pd/workshop_survey/VariableFormGroup.story.jsx
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import VariableFormGroup from './VariableFormGroup'; | ||
import reactBootstrapStoryDecorator from '../reactBootstrapStoryDecorator'; | ||
|
||
export default storybook => { | ||
storybook | ||
.storiesOf('VariableFormGroup', module) | ||
.addDecorator(reactBootstrapStoryDecorator) | ||
.addStoryTable([{ | ||
name: 'basic uncontrolled VariableFormGroup', | ||
story: () => ( | ||
<VariableFormGroup | ||
sourceLabel="Who should go on the away mission?" | ||
sourceName="roster" | ||
sourceValues={[ | ||
"an essential member of the bridge crew", | ||
"an absolutely valueless redshirt", | ||
"someone whose actual job is to go on away missions" | ||
]} | ||
|
||
columnVariableQuestions={[{ | ||
label: "is this person qualified for the mission?", | ||
name: "qualified", | ||
required: true, | ||
type: "radio", | ||
values: ["Yes", "Not remotely"] | ||
}, { | ||
label: "can the ship afford to risk this person's life?", | ||
name: "risk", | ||
required: true, | ||
type: "radio", | ||
values: ["Yes", "We would all literally die without them"] | ||
}]} | ||
|
||
rowVariableQuestions={[{ | ||
label: "why are you selecing {value} for this mission?", | ||
name: "why", | ||
required: false, | ||
type: "free_response" | ||
}]} | ||
/> | ||
) | ||
}]); | ||
}; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.