Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
upgrade to next 12.0.7 due to high severity warning
Browse files Browse the repository at this point in the history
fix various warnings and error messages.
  • Loading branch information
frodesundby committed Jan 5, 2022
1 parent 20795e9 commit 11929db
Show file tree
Hide file tree
Showing 6 changed files with 514 additions and 323 deletions.
32 changes: 17 additions & 15 deletions components/dataproducts/dataproductInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ const DataproductInfo = ({product}: DataproductDetailProps) => {
return (
<>
<table>
{!!product.keywords.length && (
<tr>
<td>
{product.keywords.map((k, i) => (
<Link key={i} href={`/search?q=${k}`}>
<a>
<KeywordLink key={k} keyword={k}>
{k}
</KeywordLink>
</a>
</Link>
))}
</td>
</tr>
)}
<tbody>
{!!product.keywords.length && (
<tr>
<td>
{product.keywords.map((k, i) => (
<Link key={i} href={`/search?q=${k}`}>
<a>
<KeywordLink key={k} keyword={k}>
{k}
</KeywordLink>
</a>
</Link>
))}
</td>
</tr>
)}
</tbody>
</table>
<StyledTable>
<tbody>
Expand Down
2 changes: 2 additions & 0 deletions components/dataproducts/dataproductTableSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const DataproductTableSchema = ({
return (
<div>
<StyledTable>
<tbody>
<tr>
<th>Adresse:</th>
<td>
Expand Down Expand Up @@ -58,6 +59,7 @@ const DataproductTableSchema = ({
<td>{humanizeDate(datasource.expires)}</td>
</tr>
)}
</tbody>
</StyledTable>
<SubHeader>Skjema</SubHeader>
<TableContainer component={Paper}>
Expand Down
2 changes: 1 addition & 1 deletion components/lib/subHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components'

const SubHeader = styled.table`
const SubHeader = styled.h4`
background-color: #fafafa;
width: 100%;
border-top: 1px solid #dde;
Expand Down
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
Loading

0 comments on commit 11929db

Please sign in to comment.