(ui) show message again

This commit is contained in:
ishaan-jaff 2024-01-29 20:12:00 -08:00
parent 7a1cab83db
commit eb3aeff37f

View file

@ -123,12 +123,25 @@ const CreateKey: React.FC<CreateKeyProps> = ({
visible={isModalVisible} visible={isModalVisible}
onOk={handleOk} onOk={handleOk}
onCancel={handleCancel} onCancel={handleCancel}
footer={null}
> >
{/* Display the result here */} <Grid numItems={1} className="gap-2 w-full">
<p> <Col numColSpan={1}>
API Key: {apiKey} <br /> <p>
{/* Display other API response details here */} Please save this secret key somewhere safe and accessible. For
</p> security reasons, <b>you will not be able to view it again</b>{" "}
through your LiteLLM account. If you lose this secret key, you will
need to generate a new one.
</p>
</Col>
<Col numColSpan={1}>
{apiKey != null ? (
<Text>API Key: {apiKey}</Text>
) : (
<Text>Key being created, this might take 30s</Text>
)}
</Col>
</Grid>
</Modal> </Modal>
)} )}
</div> </div>