From 763735f92e4cf4fb311c8de9b62b9e5fc06f3c5d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 27 May 2019 21:58:41 +0200 Subject: [Glitch] Refactor footers in web UI into a single component Port 451e5980b609eca5b20041963aca0098508475d7 to glitch-soc Signed-off-by: Thibaut Girka --- .../glitch/features/ui/components/link_footer.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 app/javascript/flavours/glitch/features/ui/components/link_footer.js (limited to 'app/javascript/flavours/glitch/features/ui/components/link_footer.js') diff --git a/app/javascript/flavours/glitch/features/ui/components/link_footer.js b/app/javascript/flavours/glitch/features/ui/components/link_footer.js new file mode 100644 index 000000000..3e724fffb --- /dev/null +++ b/app/javascript/flavours/glitch/features/ui/components/link_footer.js @@ -0,0 +1,36 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { FormattedMessage } from 'react-intl'; +import { Link } from 'react-router-dom'; +import { invitesEnabled, version, repository, source_url } from 'flavours/glitch/util/initial_state'; +import { signOutLink } from 'flavours/glitch/util/backend_links'; + +const LinkFooter = () => ( +
+
    + {invitesEnabled &&
  • ·
  • } +
  • ·
  • +
  • ·
  • +
  • ·
  • +
  • ·
  • +
  • ·
  • +
  • ·
  • +
  • +
+ +

+ glitch-soc/mastodon (v{version}), + Mastodon: Mastodon }} + /> +

+
+); + +LinkFooter.propTypes = { +}; + +export default LinkFooter; -- cgit