Skip to content

Commit

Permalink
added a defaultProps for HarborRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
wrighbr committed Feb 15, 2022
1 parent 48df4ec commit 45f89d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/HarborRepository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,22 @@ function HarborRepository(props: RepositoryProps) {
<div>
<Table
options={{ paging: false, search: false, padding: "dense" }}
title="Docker Images"
title={props.title}
columns={columns}
data={repository}
/>
</div>
);
}

HarborRepository.defaultProps = {
title: "Docker Images",
};
interface RepositoryProps {
widget: boolean;
project: string;
repository: string;
title: string;
}

interface Repository {
Expand Down

0 comments on commit 45f89d3

Please sign in to comment.