mirror of
https://github.com/yusufipk/quote-machine.git
synced 2026-09-11 18:56:09 +00:00
fixed button
This commit is contained in:
@@ -3,7 +3,12 @@ import "bootstrap/dist/css/bootstrap.min.css";
|
||||
|
||||
export const QuoteButton = (props) => {
|
||||
return (
|
||||
<Button variant={props.variant} target={props.target} onClick={props.click}>
|
||||
<Button
|
||||
variant={props.variant}
|
||||
href={props.href}
|
||||
target={props.target}
|
||||
onClick={props.click}
|
||||
>
|
||||
{props.text}
|
||||
</Button>
|
||||
);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-content: center;
|
||||
height: 950px;
|
||||
height: 954px;
|
||||
|
||||
#quote-box {
|
||||
display: flexbox;
|
||||
|
||||
@@ -89,6 +89,7 @@ class QuoteBox extends React.Component {
|
||||
href={`https://twitter.com/intent/tweet?text=${this.state.displayQuote}
|
||||
|
||||
${this.state.displayAuthor}`}
|
||||
target="_blank"
|
||||
text={
|
||||
<a
|
||||
id="tweet-quote"
|
||||
|
||||
Reference in New Issue
Block a user