fix Button not being anchored
This commit is contained in:
parent
faabc8b6d8
commit
528d18f20d
@ -33,7 +33,7 @@ const Projects = ({
|
|||||||
{empty}
|
{empty}
|
||||||
<Row>
|
<Row>
|
||||||
<Column xs={12}>
|
<Column xs={12}>
|
||||||
<Button to={`/${org.id}/new-project`}>
|
<Button to={`/${org.id}/new-project`} rr>
|
||||||
<FormattedMessage id='create-new' />
|
<FormattedMessage id='create-new' />
|
||||||
</Button>
|
</Button>
|
||||||
</Column>
|
</Column>
|
||||||
|
@ -167,7 +167,7 @@ const Button = (props) => {
|
|||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const Views = [
|
const Views = [
|
||||||
() => !to || !href ? StyledButton : null,
|
() => !to && !href ? StyledButton : null,
|
||||||
() => !rr ? StyledAnchor : null,
|
() => !rr ? StyledAnchor : null,
|
||||||
() => StyledLink
|
() => StyledLink
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user