Merge pull request #4876 from urbit/mp/permalinks/navigate

permalinks: navigate on-click
This commit is contained in:
matildepark 2021-05-07 12:24:58 -04:00 committed by GitHub
commit e44151e215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ interface GroupPermalink {
group: string;
link: string;
}
interface GraphPermalink {
export interface GraphPermalink {
type: 'graph';
link: string;
graph: string;

View File

@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useState } from "react";
import { useHistory, useLocation, Link } from 'react-router-dom';
import { Association, GraphNode, resourceFromPath } from '@urbit/api';
import GlobalApi from '~/logic/api/global';
import {
import {
getPermalinkForGraph, GraphPermalink as IGraphPermalink, parsePermalink
} from '~/logic/lib/permalinks';
import {
@ -115,7 +115,7 @@ function GraphPermalink(
borderRadius="2"
cursor='pointer'
onClick={(e) => {
e.stopPropagation();
navigate(e);
}}
>
{showTransclusion && index && (