Skip to content

Commit

Permalink
Merge pull request #308 from insitu-project/fix/missing_link_on_empty…
Browse files Browse the repository at this point in the history
…_notices_list

fix(create): inactive create button on empty notice list
  • Loading branch information
JalilArfaoui authored Jun 1, 2019
2 parents 19b8292 + 229e91e commit a300992
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/app/content/App/Notice/List/NoNotice/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ export default () => (
<Title>Pas de Bulle ici</Title>
<ButtonContainer>
<Illustration />
<BorderButton>Créer une Bulle</BorderButton>
<BorderButton
as="a"
href="https://form.jotformeu.com/82702852284358"
target="_blank"
rel="noopener noreferrer"
>
Créer une Bulle
</BorderButton>
</ButtonContainer>
</Fragment>
);
9 changes: 7 additions & 2 deletions src/components/atoms/Buttons/BorderButton/BorderButton.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import styled from 'styled-components';
import Button from '../../Button';

export default styled(Button)`
interface BorderButtonProps {
href?: string;
target?: '_blank';
rel?: string;
}
export default styled(Button)<BorderButtonProps>`
height: 28px;
padding: 0 12px;
padding: 5px 12px;
font-size: 15px;
color: ${props => props.theme.button};
text-decoration: none;
Expand Down

0 comments on commit a300992

Please sign in to comment.