mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
back to logs added conditionally
This commit is contained in:
parent
dea3b53578
commit
15baaf68db
2 changed files with 5 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ interface KeyInfoViewProps {
|
|||
teams: any[] | null
|
||||
premiumUser: boolean
|
||||
setAccessToken?: (token: string) => void
|
||||
backButtonText?: string
|
||||
}
|
||||
|
||||
export default function KeyInfoView({
|
||||
|
|
@ -57,6 +58,7 @@ export default function KeyInfoView({
|
|||
onDelete,
|
||||
premiumUser,
|
||||
setAccessToken,
|
||||
backButtonText = "Back to Keys",
|
||||
}: KeyInfoViewProps) {
|
||||
const [isEditing, setIsEditing] = useState(false)
|
||||
const [form] = Form.useForm()
|
||||
|
|
@ -92,7 +94,7 @@ export default function KeyInfoView({
|
|||
return (
|
||||
<div className="p-4">
|
||||
<Button icon={ArrowLeftIcon} variant="light" onClick={onClose} className="mb-4">
|
||||
Back to Keys
|
||||
{backButtonText}
|
||||
</Button>
|
||||
<Text>Key not found</Text>
|
||||
</div>
|
||||
|
|
@ -261,7 +263,7 @@ export default function KeyInfoView({
|
|||
<div className="flex justify-between items-center mb-6">
|
||||
<div>
|
||||
<Button icon={ArrowLeftIcon} variant="light" onClick={onClose} className="mb-4">
|
||||
Back to Keys
|
||||
{backButtonText}
|
||||
</Button>
|
||||
<Title>{currentKeyData.key_alias || "API Key"}</Title>
|
||||
|
||||
|
|
|
|||
|
|
@ -500,6 +500,7 @@ export default function SpendLogsTable({
|
|||
teams={allTeams}
|
||||
onClose={() => setSelectedKeyIdInfoView(null)}
|
||||
premiumUser={premiumUser}
|
||||
backButtonText="Back to Logs"
|
||||
/>
|
||||
) : selectedSessionId ? (
|
||||
<div className="bg-white rounded-lg shadow">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue