fix: search bar and add quote pack api support back

This commit is contained in:
David Ralph
2021-05-03 11:10:04 +01:00
parent 7628e769be
commit 1dc5e7375b
4 changed files with 15 additions and 4 deletions

View File

@@ -73,8 +73,8 @@ export default class Quote extends React.PureComponent {
try {
const data = await (await fetch(quotePackAPI.url)).json();
return this.setState({
quote: '"' + data.quote + '"',
author: quotePackAPI.author || data.author,
quote: '"' + data[quotePackAPI.quote] + '"',
author: data[quotePackAPI.author] || quotePackAPI.author,
type: 'quote_pack'
});
} catch (e) {

View File

@@ -61,5 +61,13 @@
&:focus {
background-color: rgba(0, 0, 0, 0.5);
}
&::-webkit-input-placeholder {
color: white;
}
&::-moz-placeholder {
color: white;
}
}
}