From 88d142d2098ad87613222e9a0c6df478a78f6528 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 1 Nov 2021 16:10:49 -0300
Subject: more styling

added placeholders for inputs
import declaration for png
next button now has tooltip providing info about whats missing
a lot more of examples for UI testing
added qr dependency for totp rendering
added email and field input types
added all auth method setup screens
added modal when there is not auth provider
merge continent and country into location section
others improvements as well...
---
 packages/anastasis-webui/src/components/fields/TextInput.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'packages/anastasis-webui/src/components/fields/TextInput.tsx')

diff --git a/packages/anastasis-webui/src/components/fields/TextInput.tsx b/packages/anastasis-webui/src/components/fields/TextInput.tsx
index fa6fd9792..4bb785cd3 100644
--- a/packages/anastasis-webui/src/components/fields/TextInput.tsx
+++ b/packages/anastasis-webui/src/components/fields/TextInput.tsx
@@ -5,6 +5,7 @@ export interface TextInputProps {
   label: string;
   grabFocus?: boolean;
   error?: string;
+  placeholder?: string;
   tooltip?: string;
   bind: [string, (x: string) => void];
 }
@@ -29,6 +30,7 @@ export function TextInput(props: TextInputProps): VNode {
     <div class="control has-icons-right">
       <input
         value={value}
+        placeholder={props.placeholder}
         class={showError ? 'input is-danger' : 'input'}
         onChange={(e) => {setDirty(true); props.bind[1]((e.target as HTMLInputElement).value)}}
         ref={inputRef}
-- 
cgit v1.2.3

