-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f706285
commit dea56ae
Showing
11 changed files
with
565 additions
and
335 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,6 @@ import TransactionTooltip, { | |
TransactionTooltipProps, | ||
} from "./TransactionTooltip"; | ||
|
||
|
||
/* Pan on drag settings */ | ||
const panOnDrag = [1, 2]; | ||
|
||
|
@@ -82,6 +81,7 @@ interface GraphContextProps { | |
doLayout: () => void; | ||
setNodeHighlight: (address: string, highlight: boolean) => void; | ||
getNodeCount: () => number; | ||
setShowTutorial: (show: boolean) => void; | ||
focusedAddressData: AddressAnalysis | null; | ||
} | ||
|
||
|
@@ -150,7 +150,6 @@ const GraphProvider: FC<GraphProviderProps> = ({ | |
/> | ||
</ReactFlowProvider> | ||
</div> | ||
<TutorialPopup /> | ||
</> | ||
); | ||
}; | ||
|
@@ -546,6 +545,9 @@ const GraphProvided: FC<GraphProvidedProps> = ({ | |
return nodes.length; | ||
} | ||
|
||
// Tutorial | ||
const [showTutorial, setShowTutorial] = useState<boolean>(false); | ||
|
||
// Set up the context | ||
const graphContext: GraphContextProps = { | ||
addAddressPaths, | ||
|
@@ -560,6 +562,7 @@ const GraphProvided: FC<GraphProvidedProps> = ({ | |
copyLink, | ||
setNodeHighlight, | ||
getNodeCount, | ||
setShowTutorial, | ||
focusedAddressData, | ||
}; | ||
|
||
|
@@ -604,7 +607,11 @@ const GraphProvided: FC<GraphProvidedProps> = ({ | |
aria-hidden="true" | ||
src="https://tailwindui.com/img/[email protected]" | ||
/> | ||
<Controls position="top-right" showInteractive={false} /> | ||
{<Controls position="top-right" showInteractive={false} />} | ||
<TutorialPopup | ||
showTutorial={showTutorial} | ||
setShowTutorial={setShowTutorial} | ||
/> | ||
<Background /> | ||
<Panel position="top-left"> | ||
<Legend /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.