diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx index 21766dcdd14..4821b1a3093 100644 --- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx +++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx @@ -5,6 +5,7 @@ import Table from 'components/to-be-cleaned/Table' import { ButtonTooltip } from 'components/ui/ButtonTooltip' import type { ProjectSecret } from 'data/secrets/secrets-query' import { useCheckPermissions } from 'hooks/misc/useCheckPermissions' +import { TimestampInfo } from 'ui-patterns' interface EdgeFunctionSecretProps { secret: ProjectSecret @@ -23,11 +24,21 @@ const EdgeFunctionSecret = ({ secret, onSelectDelete }: EdgeFunctionSecretProps)

{secret.name}

-
-

- {secret.value} -

-
+

+ {secret.value} +

+
+ + {!!secret.updated_at ? ( + + ) : ( + '-' + )}
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx index 259f3e89dd2..774807393e6 100644 --- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx +++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx @@ -68,47 +68,51 @@ const EdgeFunctionSecrets = () => { icon={} />
- Name, - - Digest{' '} - - SHA256 - - , - , - ]} - body={ - secrets.length > 0 ? ( - secrets.map((secret) => ( - setSelectedSecret(secret)} - /> - )) - ) : secrets.length === 0 && searchString.length > 0 ? ( - - -

No results found

-

- Your search for "{searchString}" did not return any results -

-
-
- ) : ( - - -

No secrets created

-

- There are no secrets associated with your project yet -

-
-
- ) - } - /> + +
+
Name, + + Digest{' '} + + SHA256 + + , + Updated at, + , + ]} + body={ + secrets.length > 0 ? ( + secrets.map((secret) => ( + setSelectedSecret(secret)} + /> + )) + ) : secrets.length === 0 && searchString.length > 0 ? ( + + +

No results found

+

+ Your search for "{searchString}" did not return any results +

+
+
+ ) : ( + + +

No secrets created

+

+ There are no secrets associated with your project yet +

+
+
+ ) + } + /> + )}