Refactor Indexer index to use react-window

(cherry picked from commit d022679b7dcbce3cec98e6a1fd0879e3c0d92523)
This commit is contained in:
Mark McDowall
2023-01-05 18:20:49 -08:00
committed by Qstick
parent c2599ef2e7
commit c0383ad5f5
314 changed files with 4928 additions and 3017 deletions
@@ -0,0 +1,17 @@
import React from 'react';
import Label from 'Components/Label';
import styles from './ProtocolLabel.css';
interface ProtocolLabelProps {
protocol: string;
}
function ProtocolLabel(props: ProtocolLabelProps) {
const { protocol } = props;
const protocolName = protocol === 'usenet' ? 'nzb' : protocol;
return <Label className={styles[protocol]}>{protocolName}</Label>;
}
export default ProtocolLabel;