13 Commits

Author SHA1 Message Date
xobotyi
b6993a6f95
feat(prettier): make prettier a part of eslint.
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:58:55 +03:00
Renovate Bot
a27f09fd36
chore: refactoring and rearrangement.
More DRY code. Also move non-hooks to separate directories.

BREAKING CHANGE: all `create*` factories been moved to `factory` subdirectory and in case direct import should be imported like `react-use/esm/factory/createBreakpoint`
BREAKING CHANGE: `comps` directory renamed to `component`
2021-01-30 23:30:26 +03:00
ddaza
db07ab65bf updated formating and fixed errors 2020-07-02 14:56:15 -05:00
ddaza
3ce080cdf3 updated prettier and eslint 2020-07-02 14:19:03 -05:00
manishsundriyal
1ead4efab6 fix: doesn't unlock the body on unmount 2020-04-13 17:46:58 +05:30
Ayush Goyal
67d65833d9 chore: disable eslint for affected files 2020-02-04 07:12:19 +05:30
andrico
9f54379f33 remove ontouchstart event handler 2020-01-10 08:20:52 +00:00
andrico
c44bed806a prelimnary ios lock fixes 2020-01-10 08:11:22 +00:00
xobotyi
26baf47bac fix(useLockBodyScroll): infer overflow type directly from declaration. 2019-11-02 01:24:06 +03:00
xobotyi
2617d74b8a fix: #550 2019-08-25 07:41:33 +03:00
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
streamich
9bb7047b73 feat: 🎸 keep global state of all useLockBodyScroll hooks
This change will keep document body locked as long as at least one hook
is enabled on the page. Maybe it makes sense to generalize this logic
for other side-effect hooks. One such hook could be useBlurBody that
blurs page - useful for modals and overlays.
2019-03-24 17:43:35 +01:00
Ward Oosterlijnck
0754bce76e useLockBodyScroll 2019-03-24 10:27:38 +11:00