Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed May 21, 2024
1 parent fe0ebae commit 0c0c701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import IcBaselineHistory from '~icons/ic/baseline-history';
import Arrow from '~icons/ic/sharp-keyboard-arrow-down';

interface Props {
sequenceEntryHistory: SequenceEntryHistory[];
sequenceEntryHistory: SequenceEntryHistory;
accessionVersion: string;
setPreviewedSeqId?: (seqId: string | null) => void;
}
Expand All @@ -21,14 +21,14 @@ export const SequenceEntryHistoryMenu: React.FC<Props> = ({
return (
<>
<div className='dropdown dropdown-hover hidden sm:inline-block'>
<label tabIndex='0' className='btn btn-sm btn-outline py-1'>
<label tabIndex={0} className='btn btn-sm btn-outline py-1'>
<a href={routes.versionPage(accessionVersion)} className='text-sm'>
All versions
</a>
<Arrow />
</label>
<ul
tabIndex='0'
tabIndex={0}
className='dropdown-content z-[1] menu p-1 shadow bg-base-100 rounded-box absolute top-full left-0 text-sm'
>
{sequenceEntryHistory.map((version) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type SequenceEntryHistory } from '../../types/lapis';
import IcBaselineDownload from '~icons/ic/baseline-download';
interface Props {
sequenceEntryHistory?: SequenceEntryHistory[];
sequenceEntryHistory?: SequenceEntryHistory;
organism: string;
accessionVersion: string;
showFastaDownload: boolean;
Expand Down

0 comments on commit 0c0c701

Please sign in to comment.