Skip to content

Commit

Permalink
WIP in answerbox notification; fix custom schema-based config modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Feb 4, 2022
1 parent 27ee3f0 commit 71e3c22
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/SearchBlock/SearchBlockView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export default function SearchBlockView(props) {
},
};

console.log('config', registry);

// console.log('registry', registry);
return (
<BodyClass className="searchlib-page">
Expand Down
5 changes: 0 additions & 5 deletions src/SearchBlock/less/answersbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@
margin-right: 0.3em;
text-align: right;
}

.answer__domain {
padding-left: 0.3em;
font-size: x-small;
}
}

.ui.segment.loading {
Expand Down
6 changes: 6 additions & 0 deletions src/SearchBlock/less/searchresult.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.result__source {
display: flex;
column-gap: 0.3em;
font-size: x-small;
}

div#page-document {
div.searchapp {
div.cards {
Expand Down
5 changes: 1 addition & 4 deletions src/SearchBlock/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,8 @@ export const SearchBlockSchema = ({ formData = {} }) => ({
try {
extra = JSON.parse(data);
} catch {
// eslint-disable-next-line
console.log('Not a valid JSON object', data);
return config;
} finally {
return { ...config, extra };
Object.assign(config, extra);
}
},
},
Expand Down

0 comments on commit 71e3c22

Please sign in to comment.