This file contains 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
const BASE_NUM = 76561197960265728n; | |
const REGEX_STEAMID64 = /^[0-9]{17}$/; | |
const REGEX_STEAMID = /^STEAM_[0-5]:[01]:\d+$/; | |
const REGEX_STEAMID3 = /^\[U:1:[0-9]+\]$/; | |
const isSteamID64 = (id) => { | |
if (!id) { | |
return false; | |
} | |
return REGEX_STEAMID64.test(id); |
This file contains 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 actions.ToggleSideBar | |
import react.* | |
import react.redux.rConnect | |
import reducers.AppState | |
import redux.WrapperAction | |
private interface TableStateProps : RProps { | |
var isSideBarOpen: Boolean | |
} |
This file contains 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
// usage: useEffectDebugger(callback, deps) | |
const usePrevious = (value: any, initialValue: any) => { | |
const ref = useRef(initialValue); | |
useEffect(() => { | |
ref.current = value; | |
}); | |
return ref.current; | |
}; |