Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Goran Sterjov committed Jan 30, 2024
1 parent 0c8a8fe commit da86503
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions src/app/browse/datasets/[name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Link from "next/link";
import { MAX_WIDTH } from "@/app/constants";
import { LoadOverlay, LoadPanel } from "@/components/load-overlay";
import { usePreviousPage } from "@/components/navigation-history";
import { Photo } from "@/app/type";


const PAGE_SIZE = 10;
Expand Down Expand Up @@ -63,10 +64,6 @@ query DatasetSpecies($name: String, $page: Int) {
}
}`;

type Photo = {
url: string,
}

type DataSummary = {
genomes: number,
loci: number,
Expand Down
3 changes: 2 additions & 1 deletion src/app/browse/genomes/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { MAX_WIDTH } from "@/app/constants";
import { Photo } from "@/app/type";
import DataTypeHeader from "@/components/data-type-header";
import { Filter, intoFilterItem } from "@/components/filtering/common";
import { HasDataFilters } from "@/components/filtering/has-data";
Expand Down Expand Up @@ -67,7 +68,7 @@ type Species = {
canonicalName: string,
kingdom?: string,
},
photo: { url: string },
photo: Photo,
dataSummary: DataSummary,
}

Expand Down
3 changes: 2 additions & 1 deletion src/app/browse/loci/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { MAX_WIDTH } from "@/app/constants";
import { Photo } from "@/app/type";
import DataTypeHeader from "@/components/data-type-header";
import { Filter, intoFilterItem } from "@/components/filtering/common";
import { HasDataFilters } from "@/components/filtering/has-data";
Expand Down Expand Up @@ -67,7 +68,7 @@ type Species = {
canonicalName: string,
kingdom?: string,
},
photo: { url: string },
photo: Photo,
dataSummary: DataSummary,
}

Expand Down
5 changes: 1 addition & 4 deletions src/app/browse/sources/[name]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useDisclosure } from "@mantine/hooks";
import { SortAscending, Filter as IconFilter } from "tabler-icons-react";
import { HasDataFilters } from "@/components/filtering/has-data";
import { HigherClassificationFilters } from "@/components/filtering/higher-classification";
import { Photo } from "@/app/type";


const PAGE_SIZE = 10;
Expand Down Expand Up @@ -82,10 +83,6 @@ query SourceSpecies($name: String, $page: Int, $pageSize: Int, $filters: [Filter
}
}`;

type Photo = {
url: string,
}

type DataSummary = {
genomes: number,
loci: number,
Expand Down
3 changes: 2 additions & 1 deletion src/app/browse/specimens/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import { MAX_WIDTH } from "@/app/constants";
import { Photo } from "@/app/type";
import DataTypeHeader from "@/components/data-type-header";
import { Filter, intoFilterItem } from "@/components/filtering/common";
import { HasDataFilters } from "@/components/filtering/has-data";
Expand Down Expand Up @@ -67,7 +68,7 @@ type Species = {
canonicalName: string,
kingdom?: string,
},
photo: { url: string },
photo: Photo,
dataSummary: DataSummary,
}

Expand Down

0 comments on commit da86503

Please sign in to comment.