MirrorMode.jsx 746 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import React from 'react';
  2. /**
  3. * Page staff credit component
  4. *
  5. * @export
  6. * @class StaffCredit
  7. * @extends {React.Component}
  8. */
  9. export default class MirrorMode extends React.Component {
  10. // when this is called it returns the hotkey stroke
  11. static getHotkeyStroke() {
  12. return {
  13. stroke: ['x', 'x', 'b', 'b', 'a', 'y', 'a', 'y', 'ArrowDown', 'ArrowLeft'], ctrlKey: false, metaKey: false, altKey: false, shiftKey: false,
  14. };
  15. }
  16. static getComponent() {
  17. return <MirrorMode />;
  18. }
  19. componentDidMount() {
  20. const changeBody = document.body;
  21. changeBody.classList.add('mirror');
  22. return null;
  23. }
  24. render() {
  25. return (
  26. <React.Fragment>
  27. </React.Fragment>
  28. );
  29. }
  30. }
  31. MirrorMode.propTypes = {
  32. };