fix: History sidebar behavior (more leftover bugs from TS conversion)

This commit is contained in:
Tom Moor
2021-12-13 23:42:47 -08:00
parent 74615bfe37
commit 2f4531ff49
3 changed files with 3 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ const EventListItem = ({ event, latest, document }: Props) => {
return (
<ListItem
small
exact
to={to}
title={
<Time

View File

@@ -6,6 +6,7 @@ import NavLink from "~/components/NavLink";
type Props = {
image?: React.ReactNode;
to?: string;
exact?: boolean;
title: React.ReactNode;
subtitle?: React.ReactNode;
actions?: React.ReactNode;

View File

@@ -8,7 +8,7 @@ import { PaginationParams } from "~/types";
import { client } from "~/utils/ApiClient";
export default class RevisionsStore extends BaseStore<Revision> {
actions = [RPCAction.List];
actions = [RPCAction.List, RPCAction.Info];
constructor(rootStore: RootStore) {
super(rootStore, Revision);