forked from phoenix/litellm-mirror
update docs
This commit is contained in:
parent
1eeac76a18
commit
198b95d7a0
3 changed files with 30 additions and 2 deletions
19
docs/my-website/src/components/queryParamToken.js
Normal file
19
docs/my-website/src/components/queryParamToken.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
|
||||
const QueryParamToken = () => {
|
||||
const [token, setToken] = useState(null);
|
||||
|
||||
useEffect(() => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const token = urlParams.get('token');
|
||||
setToken(token);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<span style={{ padding: 0, margin: 0 }}>
|
||||
{token ? <a href={`https://admin.litellm.ai/${token}`} target="_blank" rel="noopener noreferrer">admin.litellm.ai</a> : ""}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export default QueryParamToken;
|
Loading…
Add table
Add a link
Reference in a new issue