diff --git a/src/workspaces/components/Data/DataRow.tsx b/src/workspaces/components/Data/DataRow.tsx index d6ef2b7f..32d80f6e 100644 --- a/src/workspaces/components/Data/DataRow.tsx +++ b/src/workspaces/components/Data/DataRow.tsx @@ -27,14 +27,27 @@ type DataRowProps = { trail?: ReactNode; /** Makes the whole row a link. Rows are real links so cmd-click and the back button work. */ to?: string; + /** Same, for a destination outside the app. Opens in a new tab; ignored when `to` is set. */ + href?: string; onClick?: () => void; /** Marks the row as the current selection when the list is a master beside a detail pane. */ selected?: boolean; className?: string; }; -export const DataRow = ({ title, description, meta, lead, trail, to, onClick, selected, className }: DataRowProps) => { - const interactive = !!to || !!onClick; +export const DataRow = ({ + title, + description, + meta, + lead, + trail, + to, + href, + onClick, + selected, + className, +}: DataRowProps) => { + const interactive = !!to || !!href || !!onClick; const body = ( <> {lead &&