mirror of
https://github.com/mue/mue.git
synced 2026-07-10 14:04:32 +02:00
fix: search bar and add quote pack api support back
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -61,5 +61,13 @@
|
||||
&:focus {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
&::-webkit-input-placeholder {
|
||||
color: white;
|
||||
}
|
||||
|
||||
&::-moz-placeholder {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user