Skip to content

Commit

Permalink
Open detail pages in new tabs
Browse files Browse the repository at this point in the history
Closes #104
  • Loading branch information
brianlove authored and jmelot committed Oct 20, 2023
1 parent d6a0d9a commit 8ceb53d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/gui-v2/src/static_data/table_columns.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { Link } from 'gatsby';
import { css } from '@emotion/react';

import CellStat from '../components/CellStat';
Expand Down Expand Up @@ -59,7 +58,14 @@ const columnDefinitions = [
title: "Company",
key: "name",
css: styles.name,
format: (name, row) => <Link to={`company/${row.cset_id}-${slugifyCompanyName(name)}`}>{name}</Link>,
format: (name, row) => (
<a
target="_blank"
href={`company/${row.cset_id}-${slugifyCompanyName(name)}`}
>
{name}
</a>
),
initialCol: true,
minWidth: 240,
sortable: true,
Expand Down

0 comments on commit 8ceb53d

Please sign in to comment.