mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(blog) pagination
This commit is contained in:
14 files changed
+219
-88
No files matched your search
@@ -89,11 +89,11 @@ function Navbar() {
|
||||
}, [ path ]);
|
||||
|
||||
|
||||
const minMobileWidth: number = 1024;
|
||||
const maxMobileWidth: number = 1024;
|
||||
const [ isMobile, setIsMobile ] = useState(false);
|
||||
useEffect(() => {
|
||||
const updateMobileWidth = () => {
|
||||
if (window.innerWidth <= minMobileWidth) {
|
||||
if (window.innerWidth <= maxMobileWidth) {
|
||||
setIsMobile(true);
|
||||
} else {
|
||||
setIsMobile(false);
|
||||
|
||||
Reference in new issue
Block a user