Skip to content

Commit 348a1d2

Browse files
authored
Merge pull request #43 from TryShape/issue-23-bug-flicker-issue
fix: Tweet button should be available without the login too
2 parents 5ea74ab + cdd88cd commit 348a1d2

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

components/utils/Header.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,15 @@ const Header = ({
246246
</LoginBar>
247247
</>
248248
) : (
249-
<Button variant="outline-secondary" size="sm" onClick={() => setOpen(true)}>
250-
<div>Sign In</div>
251-
</Button>
249+
<>
250+
<Button variant="outline-secondary" size="sm" className="mr-1" onClick={tweet}>
251+
<FiTwitter />
252+
Tweet it
253+
</Button>
254+
<Button variant="outline-secondary" size="sm" onClick={() => setOpen(true)}>
255+
<div>Sign In</div>
256+
</Button>
257+
</>
252258
)}
253259
<CreateShape
254260
show={showCreateShape}

0 commit comments

Comments
 (0)