refactor(RTL mode): to save developers time from searching docs and Google to prepare RTL mode, optional arguments are set to their default values. Now they just need to change NbLayoutDirection.LTR to NbLayoutDirection.RTL and the theme switchs to RTL mode.

This commit is contained in:
Alimadadi 2019-11-05 12:07:59 +03:30
parent 61dd23153e
commit b661d5901c

View file

@ -12,6 +12,7 @@ import {
NbSelectModule,
NbIconModule,
NbThemeModule,
NbLayoutDirection,
} from '@nebular/theme';
import { NbEvaIconsModule } from '@nebular/eva-icons';
import { NbSecurityModule } from '@nebular/security';
@ -85,6 +86,8 @@ export class ThemeModule {
name: 'default',
},
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ],
null,
NbLayoutDirection.LTR,
).providers,
],
};