Extract ApiKeyCount from state.

This commit is contained in:
Carlos Mondragon
2018-10-10 16:05:50 -07:00
committed by Johannes Schill
parent 795b0ca90f
commit 0bf2d5ebcd

View File

@@ -1,5 +1,7 @@
import { ApiKeysState } from 'app/types';
export const getApiKeysCount = (state: ApiKeysState) => state.keys.length;
export const getApiKeys = (state: ApiKeysState) => {
const regex = RegExp(state.searchQuery, 'i');