Skip to content

Commit

Permalink
fix: add missing modules in examples (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed May 27, 2019
1 parent f8a5c9c commit 1139848
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 11 deletions.
9 changes: 7 additions & 2 deletions src/playground/with-layout/accordion/accordion.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { NgModule } from '@angular/core';
import { NbAccordionModule, NbCardModule } from '@nebular/theme';
import { NbAccordionModule, NbButtonModule, NbCardModule } from '@nebular/theme';
import { AccordionRoutingModule } from './accordion-routing.module';
import { AccordionMultiComponent } from './accordion-multi.component';
import { AccordionShowcaseComponent } from './accordion-showcase.component';
Expand All @@ -19,6 +19,11 @@ import { AccordionToggleComponent } from './accordion-toggle.component';
AccordionTestComponent,
AccordionToggleComponent,
],
imports: [ NbAccordionModule, NbCardModule, AccordionRoutingModule ],
imports: [
NbAccordionModule,
NbCardModule,
NbButtonModule,
AccordionRoutingModule,
],
})
export class AccordionModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { NbDialogRef } from '@nebular/theme';
<input #name nbInput placeholder="Name">
</nb-card-body>
<nb-card-footer>
<button nbButton hero status="danget" (click)="cancel()">Cancel</button>
<button nbButton hero status="danger" (click)="cancel()">Cancel</button>
<button nbButton hero status="success" (click)="submit(name.value)">Submit</button>
</nb-card-footer>
</nb-card>
Expand Down
4 changes: 3 additions & 1 deletion src/playground/with-layout/dialog/dialog.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { NbCardModule, NbDialogModule } from '@nebular/theme';
import { NbButtonModule, NbCardModule, NbDialogModule, NbInputModule } from '@nebular/theme';
import { DialogRoutingModule } from './dialog-routing.module';
import { DialogAutoFocusComponent } from './dialog-auto-focus.component';
import { DialogBackdropClickComponent } from './dialog-backdrop-click.component';
Expand Down Expand Up @@ -45,6 +45,8 @@ import { ShowcaseDialogComponent } from './components/showcase-dialog.component'
imports: [
CommonModule,
NbDialogModule.forRoot(),
NbButtonModule,
NbInputModule,
NbCardModule,
DialogRoutingModule,
],
Expand Down
3 changes: 2 additions & 1 deletion src/playground/with-layout/overlay/overlay.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { NgModule } from '@angular/core';
import { NbCardModule } from '@nebular/theme';
import { NbButtonModule, NbCardModule } from '@nebular/theme';
import { OverlayRoutingModule } from './overlay-routing.module';
import { OverlayShowcaseComponent } from './overlay-showcase.component';

Expand All @@ -15,6 +15,7 @@ import { OverlayShowcaseComponent } from './overlay-showcase.component';
],
imports: [
NbCardModule,
NbButtonModule,
OverlayRoutingModule,
],
})
Expand Down
4 changes: 4 additions & 0 deletions src/playground/with-layout/popover/popover-modes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import { Component } from '@angular/core';
display: block;
margin: 5rem;
}
button {
margin: 0.5rem;
}
`],
})
export class PopoverModesComponent {
Expand Down
3 changes: 2 additions & 1 deletion src/playground/with-layout/spinner/spinner.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { NgModule } from '@angular/core';
import { NbCardModule, NbSpinnerModule, NbTabsetModule } from '@nebular/theme';
import { NbButtonModule, NbCardModule, NbSpinnerModule, NbTabsetModule } from '@nebular/theme';
import { SpinnerRoutingModule } from './spinner-routing.module';
import { SpinnerButtonComponent } from './spinner-button.component';
import { SpinnerCardComponent } from './spinner-card.component';
Expand All @@ -25,6 +25,7 @@ import { SpinnerTabsComponent } from './spinner-tabs.component';
NbSpinnerModule,
NbCardModule,
NbTabsetModule,
NbButtonModule,
SpinnerRoutingModule,
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export class RouteTabsetShowcaseComponent {
},
{
title: 'Orders',
icon: 'notifications',
icon: 'paper-plane-outline',
responsive: true,
route: [ './tab2' ],
},
{
title: 'Transaction',
icon: 'notifications',
icon: 'flash-outline',
responsive: true,
disabled: true,
},
Expand Down
4 changes: 2 additions & 2 deletions src/playground/with-layout/tooltip/tooltip.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { NgModule } from '@angular/core';
import { NbTooltipModule } from '@nebular/theme';
import { NbButtonModule, NbTooltipModule } from '@nebular/theme';
import { TooltipRoutingModule } from './tooltip-routing.module';
import { TooltipColorsComponent } from './tooltip-colors.component';
import { TooltipPlacementsComponent } from './tooltip-placements.component';
Expand All @@ -19,6 +19,6 @@ import { TooltipWithIconComponent } from './tooltip-with-icon.component';
TooltipShowcaseComponent,
TooltipWithIconComponent,
],
imports: [ NbTooltipModule, TooltipRoutingModule ],
imports: [ NbButtonModule, NbTooltipModule, TooltipRoutingModule ],
})
export class TooltipModule {}
3 changes: 2 additions & 1 deletion src/playground/without-layout/sidebar/sidebar.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { NgModule } from '@angular/core';
import { NbLayoutModule, NbSidebarModule } from '@nebular/theme';
import { NbButtonModule, NbLayoutModule, NbSidebarModule } from '@nebular/theme';
import { SidebarRoutingModule } from './sidebar-routing.module';
import { SidebarCompactedComponent } from './sidebar-compacted.component';
import { SidebarFixedComponent } from './sidebar-fixed.component';
Expand All @@ -32,6 +32,7 @@ import { SidebarTwoTestComponent } from './sidebar-two-test.component';
imports: [
NbSidebarModule.forRoot(),
NbLayoutModule,
NbButtonModule,
SidebarRoutingModule,
],
})
Expand Down

0 comments on commit 1139848

Please sign in to comment.