aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/settings/index.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-09-11 15:07:55 -0300
committerSebastian <sebasjm@gmail.com>2023-09-11 15:08:08 -0300
commit8c20f4b27946679267bb44255721a9f14ae1077a (patch)
tree389d7dac804af0e17652240094947e710f503dd3 /packages/merchant-backoffice-ui/src/paths/settings/index.tsx
parente2422b68ebb2a29fb2e4d86f8a8cf9ec2a33e099 (diff)
new login token
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/settings/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/settings/index.tsx18
1 files changed, 13 insertions, 5 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx
index 0d514f2df..87bd2fa39 100644
--- a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx
@@ -13,7 +13,7 @@ function getBrowserLang(): string | undefined {
return undefined;
}
-export function Settings(): VNode {
+export function Settings({ onClose }: { onClose?: () => void }): VNode {
const { i18n } = useTranslationContext()
const borwserLang = getBrowserLang()
const { update } = useLang()
@@ -94,11 +94,19 @@ export function Settings(): VNode {
/>
</FormProvider>
</div>
-
-
</div>
<div class="column" />
</div>
- </section>
- </div>
+ </section >
+ {onClose &&
+ <section class="section is-main-section">
+ <button
+ class="button"
+ onClick={onClose}
+ >
+ <i18n.Translate>Close</i18n.Translate>
+ </button>
+ </section>
+ }
+ </div >
} \ No newline at end of file