Skip to content

Commit

Permalink
move GoogleWebsiteTranslator from pages/* to AppFooter
Browse files Browse the repository at this point in the history
  • Loading branch information
GoreStarry committed May 14, 2018
1 parent 594f456 commit 494e97e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions components/App/AppFooter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { PROJECT_HACKFOLDR, CONTACT_EMAIL } from '../../constants/urls';
import GoogleWebsiteTranslator from 'components/GoogleWebsiteTranslator';

export default function AppFooter() {
return (
Expand All @@ -21,6 +22,7 @@ export default function AppFooter() {
<a href={`mailto:${CONTACT_EMAIL}`}>連絡信箱</a>
</p>
<GoogleWebsiteTranslator />
<style jsx>{`
footer {
margin: 0 20px 44px;
Expand Down
2 changes: 0 additions & 2 deletions pages/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import CurrentReplies from 'components/CurrentReplies';
import RelatedReplies from 'components/RelatedReplies';
import ReplySearch from 'components/ReplySearch/ReplySearch.js';
import ReplyForm from 'components/ReplyForm';
import GoogleWebsiteTranslator from 'components/GoogleWebsiteTranslator';
import {
load,
loadAuth,
Expand Down Expand Up @@ -204,7 +203,6 @@ class ArticlePage extends React.Component {
<Head>
<title>{slicedArticleTitle}⋯⋯ | Cofacts 真的假的</title>
</Head>
<GoogleWebsiteTranslator />
<section className="section">
<header className="header">
<h2>訊息原文</h2>
Expand Down
2 changes: 0 additions & 2 deletions pages/articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import ListPage from 'components/ListPage';
import Pagination from 'components/Pagination';
import ArticleItem from 'components/ArticleItem';
import FullSiteArticleStats from 'components/FullSiteArticleStats';
import GoogleWebsiteTranslator from 'components/GoogleWebsiteTranslator';
import { load, loadAuthFields } from 'ducks/articleList';

import { mainStyle, hintStyle } from './articles.styles';
Expand Down Expand Up @@ -278,7 +277,6 @@ class Articles extends ListPage {
<Head>
<title>Cofacts 真的假的 - 轉傳訊息查證</title>
</Head>
<GoogleWebsiteTranslator />
{searchUserByArticleId
? this.renderSearchedArticleHeader()
: this.renderHeader()}
Expand Down

0 comments on commit 494e97e

Please sign in to comment.