This commit is contained in:
Karol Wypchlo 2021-02-16 12:54:01 +01:00
parent 764349b5bf
commit 7eb580558e
2 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,7 @@ const types = {
},
};
export default function Message({ type, title, items = [] }) {
console.log("------", type, types[type]);
export default function Message({ type = "info", title, items = [] }) {
const { backgroundColor, titleColor, detailsColor, iconColor, icon } = types[type];
return (

View File

@ -24,6 +24,10 @@ export async function getServerSideProps(context) {
try {
const { status, data } = await kratos.getSelfServiceRecoveryFlow(flow);
console.log("================================================================");
console.log(flow);
console.log("================================================================");
if (status === 200) return { props: { flow: data } };
throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);