mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-02 13:51:48 +00:00
Allowed MuttedMessage to define a margin 0
This commit is contained in:
@@ -18,7 +18,7 @@ export class TagsList extends React.Component {
|
||||
renderContent() {
|
||||
const { tagsList, colorGenerator } = this.props;
|
||||
if (tagsList.loading) {
|
||||
return <MuttedMessage>Loading...</MuttedMessage>
|
||||
return <MuttedMessage marginSize={0}>Loading...</MuttedMessage>
|
||||
}
|
||||
|
||||
if (tagsList.error) {
|
||||
|
||||
@@ -3,7 +3,9 @@ import { Card } from 'reactstrap';
|
||||
import classnames from 'classnames';
|
||||
|
||||
export default function MutedMessage({ children, marginSize = 4 }) {
|
||||
const cardClasses = classnames('bg-light', `mt-${marginSize}`);
|
||||
const cardClasses = classnames('bg-light', {
|
||||
[`mt-${marginSize}`]: marginSize > 0,
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="col-md-10 offset-md-1">
|
||||
|
||||
Reference in New Issue
Block a user