This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useReducer, useEffect } from 'react'; | |
import { Nullable } from 'interfaces'; | |
type SearchState<T> = { | |
results: Array<T>; | |
isSearching: boolean; | |
isError: boolean; | |
}; | |
type SearchAction<T> = | |
| { type: 'FETCH_INIT' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, RefObject } from 'react'; | |
/** | |
* Hook that handles outside click event of the passed refs | |
* | |
* @param refs array of refs | |
* @param handler a handler function to be called when clicked outside | |
*/ | |
export default function useOutsideClick( | |
refs: Array<RefObject<HTMLElement> | undefined>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
I hereby claim:
- I am anthowen on github.
- I am anthowen (https://keybase.io/anthowen) on keybase.
- I have a public key ASAmE0avnfMrHgBJsztetVeYwduvdAJAEVOgvKoLlVCxswo
To claim this, I am signing this object:
NewerOlder