From 630813513be052188fc2c1c76f0617a42e582313 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 28 Aug 2018 11:41:43 +0500 Subject: Alert for token --- src/containers/feed/index.js | 15 ++++++++++++++- src/containers/feed/styles.css | 8 ++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'src/containers') diff --git a/src/containers/feed/index.js b/src/containers/feed/index.js index d39da28..6cff00f 100644 --- a/src/containers/feed/index.js +++ b/src/containers/feed/index.js @@ -1,6 +1,7 @@ import React from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; +import { Link } from 'react-router-dom'; import './styles.css'; import Loader from '../../components/loader'; @@ -80,7 +81,19 @@ class FeedContainer extends React.Component { selectedDateJump={ this.props.preference.dateJump } /> -
+ { + !this.props.preference.options.token && ( +

+ Although not required but make sure to + + add a token + + to avoid hitting the rate limit +

+ ) + } + +
{ this.props.github.repositories && diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css index 8ab4795..95d47bc 100644 --- a/src/containers/feed/styles.css +++ b/src/containers/feed/styles.css @@ -35,3 +35,11 @@ display: block; margin: 25px auto auto; } + +.alert-warning { + margin-top: -35px; + background: #ffa; + border-top: none; + margin-bottom: 25px; + text-align: center; +} -- cgit v1.3