File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
explorer/components/DrawingPage Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useCookies } from 'react-cookie'
55import { Drawing } from '../../types'
66import { AddTagModal } from './AddTagModal'
77import { ExportTagsModal } from './ExportTagsModal'
8+ import Link from 'next/link'
89
910type Action = {
1011 title : string
@@ -32,13 +33,14 @@ export const ActionsMenu: React.FC<{ drawing: Drawing }> = ({ drawing }) => {
3233
3334 return (
3435 < >
35- < Container title = 'Actions' onClick = { ( ) => setIsActive ( ! isActive ) } isHidden = { ! actions . length } >
36+ < Container title = 'Actions' onClick = { ( ) => setIsActive ( ! isActive ) } >
3637 < svg viewBox = "0 0 24 24" >
3738 < circle cx = "5" cy = "12" r = "2" />
3839 < circle cx = "12" cy = "12" r = "2" />
3940 < circle cx = "19" cy = "12" r = "2" />
4041 </ svg >
4142 < Popup isActive = { isActive } >
43+ < Link href = '/' > < Item > Home</ Item > </ Link >
4244 { actions . map ( action => (
4345 < Item key = { action . title } onClick = { action . onClick } > { action . title } </ Item >
4446 ) ) }
@@ -50,11 +52,10 @@ export const ActionsMenu: React.FC<{ drawing: Drawing }> = ({ drawing }) => {
5052 )
5153}
5254
53- const Container = styled . button . attrs ( { className : 'Explorer__ActionsMenu__Container' } ) < { isHidden : boolean } > `
55+ const Container = styled . button . attrs ( { className : 'Explorer__ActionsMenu__Container' } ) `
5456 ${ navBarItemStyles }
5557 background: none;
5658 border: 0;
57- display: ${ o => o . isHidden && 'none' } ;
5859
5960 svg {
6061 display: block;
You can’t perform that action at this time.
0 commit comments