docs: 🐛 stop api call when user is granted
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ export default function DocAuthentication() {
|
||||
<div className={style.container}>
|
||||
<h1 className={style.h1}>Welcome on Dagger documentation</h1>
|
||||
<p>Please Sign In to Github to get access to the doc</p>
|
||||
<GithubLoginButton className={style.btn__github} onClick={() => window.location.href = `//github.com/login/oauth/authorize?client_id=${process.env.REACT_APP_CLIENT_ID}&scope=user&allow_signup=false`} />
|
||||
<GithubLoginButton className={style.btn__github} onClick={() => window.location.href = process.env.REACT_APP_GITHUB_AUTHORIZE_URI} />
|
||||
</div>
|
||||
)
|
||||
}
|
@@ -6,7 +6,7 @@ export default function DocPageRedirect() {
|
||||
const [counter, setCounter] = useState(10)
|
||||
|
||||
useEffect(() => {
|
||||
setTimeout(() => window.location.href = "https://dagger.io", 10000)
|
||||
setTimeout(() => window.location.href = process.env.REACT_APP_DAGGER_SITE_URI, 10000)
|
||||
setInterval(() => setCounter((prevState) => prevState - 1), 1000)
|
||||
}, [])
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function DocPageRedirect() {
|
||||
<p>It seems you don't have the permission to see Dagger's documentation. But don't worry you can request an Eary Access :). You'll be redirect to Dagger website in {counter} seconds </p>
|
||||
<p>See you soon !</p>
|
||||
<br />
|
||||
<small><strong>If nothing happen, <a href="https://dagger.io">click here</a> to go to Dagger website</strong></small>
|
||||
<small><strong>If nothing happen, <a href={process.env.REACT_APP_DAGGER_SITE_URI}>click here</a> to go to Dagger website</strong></small>
|
||||
</div>
|
||||
<div className="col col--4">
|
||||
<img src="/img/dagger-astronaute.png" alt="" />
|
||||
|
Reference in New Issue
Block a user