Commit ee748cfe authored by David Burke's avatar David Burke

Fixed storybook stories

parent 86d3ba97
Pipeline #56725585 passed with stages
in 18 minutes and 9 seconds
......@@ -9,7 +9,6 @@ import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { BackupCodeComponent } from "../app/account/backup-code/backup-code.component";
import { ResetPasswordComponent } from "../app/account/reset-password/reset-password.component";
import { MarketingFrameComponent } from "../app/shared/marketing-frame/marketing-frame.component";
import { LoginComponent } from "../app/login/login.component";
import { SharedModule } from "../app/shared/shared.module";
import { ProgressIndicatorModule } from "../app/progress-indicator/progress-indicator.module";
......@@ -43,10 +42,7 @@ storiesOf("Account", module)
BrowserAnimationsModule,
StoreModule.forRoot({})
],
declarations: [
PasswordInputComponent,
DownloadBackupCodeComponent
]
declarations: [PasswordInputComponent, DownloadBackupCodeComponent]
})
)
.add("Backup Code", () => ({
......@@ -90,11 +86,11 @@ storiesOf("Account", module)
component: SetPasswordComponent,
props: {
form: fromSetPassword.initialState.form,
hasStarted: boolean("has started", false),
hasStarted: boolean("has started", false)
}
}))
.add("Marketing Frame", () => ({
component: MarketingFrameComponent
template: `<app-marketing-frame></app-marketing-frame>`
}))
.add("Form Label", () => {
const defaultFormLabelState = "active";
......
......@@ -6,8 +6,6 @@ import { storiesOf, moduleMetadata } from "@storybook/angular";
import { withKnobs, boolean, text, select } from "@storybook/addon-knobs";
import { RouterTestingModule } from "@angular/router/testing";
import { TextFieldComponent } from "../app/shared/text-field/text-field.component";
import { HeadingComponent } from "../app/shared/heading/heading.component";
import { SharedModule } from "../app/shared/shared.module";
storiesOf("Shared", module)
......@@ -136,7 +134,14 @@ storiesOf("Shared", module)
`
}))
.add("Text Input", () => ({
component: TextFieldComponent,
template: `
<app-text-field
[ngrxFormControl]="ngrxFormControl"
[label]="label"
[isComplete]="isComplete"
[type]="type"
></app-text-field>
`,
props: {
ngrxFormControl: { id: "test", value: "", errors: {} },
label: text("label", "My Field"),
......@@ -149,7 +154,7 @@ storiesOf("Shared", module)
}
}))
.add("Heading", () => ({
component: HeadingComponent,
template: `<app-heading [text]="text"></app-heading>`,
props: {
text: "Some Big Heading"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment