mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:19:45 +00:00
Работает механизм переключения стилей, теперь не отваливается
This commit is contained in:
1 parent
ce0752c7eb
commit
d8d03d5e77
6 files changed
+49
-15
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useContext } from 'react';
|
||||
import { useContext, useEffect } from 'react';
|
||||
|
||||
import { News, Projects, Labs, Partners, Gallery, ContactUs } from './components';
|
||||
import { RootContext } from '../Root';
|
||||
@@ -6,11 +6,11 @@ import { RootContext } from '../Root';
|
||||
import './Main.styles.scss';
|
||||
|
||||
function Main() {
|
||||
const { containerRef } = useContext(RootContext);
|
||||
const { setRef } = useContext(RootContext);
|
||||
|
||||
return (
|
||||
<>
|
||||
<header className="header" id="mainpageheader" ref={containerRef}>
|
||||
<header id="mainpageheader" ref={element => setRef(element)}>
|
||||
<div className="container">
|
||||
<h1>Думай иначе, будь креативным!</h1>
|
||||
<h2>Студенческое конструкторское бюро<br />
|
||||
|
||||
Reference in new issue
Block a user