Closed quentinguidee closed 4 years ago
@quentinguidee/react-jade-ui
New components :
Header
HeaderLinks
HeaderLink
HeaderSpacer
HeaderLogo
HeaderSeparator
HeaderAccount
HeaderHamburger
Button
ButtonsGroup
CookiesConsent
Rework :
FeatureCard
New :
To-Do :
Must be applied to Omega-IDE :
diff --git a/src/ide/Editor.js b/src/ide/Editor.js index 564c761..2479f69 100644 --- a/src/ide/Editor.js +++ b/src/ide/Editor.js @@ -519,13 +519,7 @@ export default class IDEEditor extends Component { componentDidMount() { // Hide the cookies think - let ccrevokes = document.getElementsByClassName("cc-revoke"); - - for(let i = 0; i < ccrevokes.length; i++) { - ccrevokes[i].style.display = "none" - } - - let ccgrowers = document.getElementsByClassName("cc-grower"); + let ccgrowers = document.getElementsByClassName("cookiesconsent"); for(let i = 0; i < ccgrowers.length; i++) { ccgrowers[i].style.display = "none" diff --git a/src/ide/Simulator.js b/src/ide/Simulator.js index da863a6..cec92fb 100644 --- a/src/ide/Simulator.js +++ b/src/ide/Simulator.js @@ -18,8 +18,7 @@ export default class Simulator extends Component { } componentDidMount() { - if (document.getElementsByClassName("cc-bottom").length > 0) document.getElementsByClassName("cc-bottom")[0].style.display = "none"; - if (document.getElementsByClassName("cc-grower").length > 0) document.getElementsByClassName("cc-grower")[0].style.display = "none"; + if (document.getElementsByClassName("cookiesconsent").length > 0) document.getElementsByClassName("cookiesconsent")[0].style.display = "none"; if (document.getElementsByClassName("header").length > 0) document.getElementsByClassName("header")[0].style.display = "none"; if (document.getElementsByClassName("footer").length > 0) document.getElementsByClassName("footer")[0].style.display = "none"; }
Patch applied with Omega-Numworks/Omega-IDE#3
@quentinguidee/react-jade-ui
New components :
Header
(+HeaderLinks
,HeaderLink
,HeaderSpacer
,HeaderLogo
,HeaderSeparator
,HeaderAccount
,HeaderHamburger
)Button
ButtonsGroup
CookiesConsent
Rework :
FeatureCard
components, not in Jade UI)FeatureCard
components, not in Jade UI)New :
To-Do :
Must be applied to Omega-IDE :