fix api url
This commit is contained in:
parent
203d12b287
commit
b44325cce6
|
@ -1,4 +1,4 @@
|
||||||
export default function Message({ title, items = [] }) {
|
export default function Message({ type, title, items = [] }) {
|
||||||
return (
|
return (
|
||||||
<div className="rounded-md bg-red-50 p-4">
|
<div className="rounded-md bg-red-50 p-4">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
|
|
|
@ -146,9 +146,10 @@ export default function Login({ flow }) {
|
||||||
Sign in
|
Sign in
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{Boolean(flow.methods.password.config.errors?.length) && (
|
{Boolean(flow.methods.password.config.messages?.length) &&
|
||||||
<Message items={flow.methods.password.config.errors.map(({ message }) => message)} />
|
flow.methods.password.config.messages.map((message) => (
|
||||||
)}
|
<Message type={message.type} title={message.text} />
|
||||||
|
))}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue