From b661d5901cc583f2242deb44cd21a8e2aaca14f2 Mon Sep 17 00:00:00 2001 From: Alimadadi Date: Tue, 5 Nov 2019 12:07:59 +0330 Subject: [PATCH] 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. --- src/app/@theme/theme.module.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/@theme/theme.module.ts b/src/app/@theme/theme.module.ts index 5ae45d8c..0e42b001 100644 --- a/src/app/@theme/theme.module.ts +++ b/src/app/@theme/theme.module.ts @@ -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, ], };