mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-01 14:52:02 +00:00
Update src/hooks/courses/useCourseTabs.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
9bd0c0877d
commit
cfefabfcdf
@ -12,8 +12,7 @@ import useWindowWidth from '../useWindowWidth';
|
||||
const useCourseTabs = (options = {}) => {
|
||||
const router = useRouter();
|
||||
const windowWidth = useWindowWidth();
|
||||
const isMobileView = windowWidth <= 968;
|
||||
|
||||
const isMobileView = typeof windowWidth === 'number' ? windowWidth <= 968 : false;
|
||||
// Tab management state
|
||||
const [activeTab, setActiveTab] = useState('overview');
|
||||
const [sidebarVisible, setSidebarVisible] = useState(
|
||||
|
Loading…
x
Reference in New Issue
Block a user