mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 10:32:39 +00:00
linting & suggested changes
This commit is contained in:
@@ -41,11 +41,10 @@ const NotificationPopup = ()=>{
|
|||||||
|
|
||||||
const renderNotificationsList = ()=>{
|
const renderNotificationsList = ()=>{
|
||||||
if(error) return <div className='error'>{error}</div>;
|
if(error) return <div className='error'>{error}</div>;
|
||||||
notifications.map((notification) =>console.log(Markdown.render(notification.text, 1)));
|
|
||||||
return notifications.map((notification)=>(
|
return notifications.map((notification)=>(
|
||||||
<li key={notification.dismissKey} >
|
<li key={notification.dismissKey} >
|
||||||
<em>{notification.title}</em><br />
|
<em>{notification.title}</em><br />
|
||||||
<p dangerouslySetInnerHTML={{ __html: Markdown.render(notification.text, 1) }}></p>
|
<p dangerouslySetInnerHTML={{ __html: Markdown.render(notification.text) }}></p>
|
||||||
</li>
|
</li>
|
||||||
));
|
));
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -52,14 +52,14 @@
|
|||||||
list-style-position : outside;
|
list-style-position : outside;
|
||||||
list-style-type : disc;
|
list-style-type : disc;
|
||||||
li {
|
li {
|
||||||
font-size : 0.9em;
|
padding-left : 1em;
|
||||||
line-height : 1.5em;
|
font-size : 0.9em;
|
||||||
padding-left: 1em;
|
line-height : 1.5em;
|
||||||
em {
|
em {
|
||||||
text-transform:capitalize;
|
font-weight : 800;
|
||||||
font-weight : 800;
|
text-transform : capitalize;
|
||||||
}
|
}
|
||||||
li { list-style-type: square; line-height : 1.2em;}
|
li { line-height : 1.2em; list-style-type : square;}
|
||||||
}
|
}
|
||||||
ul ul,ol ol,ul ol,ol ul {
|
ul ul,ol ol,ul ol,ol ul {
|
||||||
margin-bottom : 0px;
|
margin-bottom : 0px;
|
||||||
@@ -67,14 +67,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Markdown styling*/
|
/* Markdown styling */
|
||||||
code {
|
code {
|
||||||
background:#08115a;
|
padding : 0.1em 0.5em;
|
||||||
padding: 0.1em 0.5em;
|
font-family : 'Courier New', 'Courier', monospace;
|
||||||
border-radius:2px;
|
|
||||||
font-family : 'Courier New', "Courier", monospace;
|
|
||||||
overflow-wrap : break-word;
|
overflow-wrap : break-word;
|
||||||
white-space : pre-wrap;
|
white-space : pre-wrap;
|
||||||
|
background : #08115A;
|
||||||
|
border-radius : 2px;
|
||||||
}
|
}
|
||||||
pre code {
|
pre code {
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
|
|||||||
Reference in New Issue
Block a user