Files
supabase/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
Ivan Vasilov 436bdb10ae chore: Move the studio app to apps/studio (#18915)
* Move all studio files from /studio to /apps/studio.

* Move studio specific prettier ignores.

* Fix the ui references from studio.

* Fix the css imports.

* Fix all package.json issues.

* Fix the prettier setup for the studio app.

* Add .turbo folder to prettierignore.

* Fix the github workflows.
2023-11-15 12:38:55 +01:00

38 lines
989 B
TypeScript

import Table from 'components/to-be-cleaned/Table'
import { ProjectSecret } from 'data/secrets/secrets-query'
import { Button, IconTrash } from 'ui'
interface EdgeFunctionSecretProps {
secret: ProjectSecret
onSelectDelete: () => void
}
const EdgeFunctionSecret = ({ secret, onSelectDelete }: EdgeFunctionSecretProps) => {
return (
<Table.tr>
<Table.td>
<p className="truncate py-2">{secret.name}</p>
</Table.td>
<Table.td>
<div className="flex items-center space-x-2">
<p className="font-mono text-sm truncate" title={secret.value}>
{secret.value}
</p>
</div>
</Table.td>
<Table.td>
<div className="flex items-center justify-end">
<Button
type="text"
icon={<IconTrash />}
className="px-1"
onClick={() => onSelectDelete()}
/>
</div>
</Table.td>
</Table.tr>
)
}
export default EdgeFunctionSecret