Batch of views getting replaceableComponent decorators
This commit is contained in:
parent
c359dff738
commit
fc5b1ed9d6
41 changed files with 82 additions and 0 deletions
|
@ -21,12 +21,14 @@ import classNames from "classnames";
|
|||
import {_t} from "../../../languageHandler";
|
||||
import {Key} from "../../../Keyboard";
|
||||
import {CategoryKey, ICategory} from "./Category";
|
||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||
|
||||
interface IProps {
|
||||
categories: ICategory[];
|
||||
onAnchorClick(id: CategoryKey): void
|
||||
}
|
||||
|
||||
@replaceableComponent("views.emojipicker.Header")
|
||||
class Header extends React.PureComponent<IProps> {
|
||||
private findNearestEnabled(index: number, delta: number) {
|
||||
index += this.props.categories.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue