import { Button } from './buttons';
export interface ListFooterProps {
+ accessibleLoadMoreLabel?: string;
count: number;
className?: string;
loading?: boolean;
}
export default function ListFooter(props: ListFooterProps) {
- const { className, count, loading, needReload, total, pageSize, ready = true } = props;
+ const {
+ accessibleLoadMoreLabel,
+ className,
+ count,
+ loading,
+ needReload,
+ total,
+ pageSize,
+ ready = true
+ } = props;
let hasMore = false;
if (total !== undefined) {
} else if (hasMore && props.loadMore) {
button = (
<Button
+ aria-label={accessibleLoadMoreLabel}
className="spacer-left"
disabled={loading}
data-test="show-more"
type AllowedButtonAttributes = Pick<
React.ButtonHTMLAttributes<HTMLButtonElement>,
- 'className' | 'disabled' | 'id' | 'style' | 'title'
+ 'aria-label' | 'className' | 'disabled' | 'id' | 'style' | 'title'
>;
interface ButtonProps extends AllowedButtonAttributes {
projects.sort.-duplications=by duplications (worst first)
projects.sort.size=by size (smallest first)
projects.sort.-size=by size (biggest first)
-
+projects.show_more=Show more projects
projects.security_hotspots_reviewed=Hotspots Reviewed
#------------------------------------------------------------------------------