mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Allowed MuttedMessage to define a margin 0
This commit is contained in:
parent
f7f0d8c7c1
commit
ec7b47fb32
2 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,7 @@ export class TagsList extends React.Component {
|
||||||
renderContent() {
|
renderContent() {
|
||||||
const { tagsList, colorGenerator } = this.props;
|
const { tagsList, colorGenerator } = this.props;
|
||||||
if (tagsList.loading) {
|
if (tagsList.loading) {
|
||||||
return <MuttedMessage>Loading...</MuttedMessage>
|
return <MuttedMessage marginSize={0}>Loading...</MuttedMessage>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tagsList.error) {
|
if (tagsList.error) {
|
||||||
|
|
|
@ -3,7 +3,9 @@ import { Card } from 'reactstrap';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
|
|
||||||
export default function MutedMessage({ children, marginSize = 4 }) {
|
export default function MutedMessage({ children, marginSize = 4 }) {
|
||||||
const cardClasses = classnames('bg-light', `mt-${marginSize}`);
|
const cardClasses = classnames('bg-light', {
|
||||||
|
[`mt-${marginSize}`]: marginSize > 0,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="col-md-10 offset-md-1">
|
<div className="col-md-10 offset-md-1">
|
||||||
|
|
Loading…
Reference in a new issue