From 920e2bc4a2e51d457ce7ecccc1ea46b5259b39e0 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Wed, 17 Jun 2020 19:08:22 +0300 Subject: [PATCH] feat: add accountOptionsFactory util --- .../packages/account/src/lib/utils/factory-utils.ts | 8 ++++++++ npm/ng-packs/packages/account/src/lib/utils/index.ts | 1 + 2 files changed, 9 insertions(+) create mode 100644 npm/ng-packs/packages/account/src/lib/utils/factory-utils.ts create mode 100644 npm/ng-packs/packages/account/src/lib/utils/index.ts diff --git a/npm/ng-packs/packages/account/src/lib/utils/factory-utils.ts b/npm/ng-packs/packages/account/src/lib/utils/factory-utils.ts new file mode 100644 index 0000000000..3e7c88f795 --- /dev/null +++ b/npm/ng-packs/packages/account/src/lib/utils/factory-utils.ts @@ -0,0 +1,8 @@ +import { Options } from '../models/options'; + +export function accountOptionsFactory(options: Options) { + return { + redirectUrl: '/', + ...options, + }; +} diff --git a/npm/ng-packs/packages/account/src/lib/utils/index.ts b/npm/ng-packs/packages/account/src/lib/utils/index.ts new file mode 100644 index 0000000000..ed99d0aaa4 --- /dev/null +++ b/npm/ng-packs/packages/account/src/lib/utils/index.ts @@ -0,0 +1 @@ +export * from './factory-utils';