diff --git a/apps/design-system/src/pages/view-preview/profile-settings-view-wrapper.tsx b/apps/design-system/src/pages/view-preview/profile-settings-view-wrapper.tsx index 2d53062d83..d1506404ae 100644 --- a/apps/design-system/src/pages/view-preview/profile-settings-view-wrapper.tsx +++ b/apps/design-system/src/pages/view-preview/profile-settings-view-wrapper.tsx @@ -1,11 +1,11 @@ -import { FC, PropsWithChildren } from 'react' +import { FC, HTMLAttributes, PropsWithChildren } from 'react' import { Route, Routes } from 'react-router-dom' import { useTranslationsStore } from '@utils/viewUtils' import { ProfileSettingsLayout } from '@harnessio/ui/views' -export const ProfileSettingsViewWrapper: FC = ({ children }) => { +export const ProfileSettingsViewWrapper: FC>> = ({ children }) => { return ( }> diff --git a/apps/design-system/src/pages/view-preview/project-settings-wrapper.tsx b/apps/design-system/src/pages/view-preview/project-settings-wrapper.tsx index 3a2f063dab..bed38b4e23 100644 --- a/apps/design-system/src/pages/view-preview/project-settings-wrapper.tsx +++ b/apps/design-system/src/pages/view-preview/project-settings-wrapper.tsx @@ -1,4 +1,4 @@ -import { FC, PropsWithChildren } from 'react' +import { FC, HTMLAttributes, PropsWithChildren } from 'react' import { Route } from 'react-router-dom' import { ProjectSettingsPage } from '@harnessio/ui/views' @@ -13,7 +13,7 @@ const Layout = () => { ) } -export const ProjectSettingsWrapper: FC>> = ({ children }) => { +export const ProjectSettingsWrapper: FC>> = ({ children }) => { return ( <> diff --git a/apps/design-system/src/pages/view-preview/repo-view-wrapper.tsx b/apps/design-system/src/pages/view-preview/repo-view-wrapper.tsx index 7dc7963ce3..69b3a70d71 100644 --- a/apps/design-system/src/pages/view-preview/repo-view-wrapper.tsx +++ b/apps/design-system/src/pages/view-preview/repo-view-wrapper.tsx @@ -13,7 +13,7 @@ const RepoViewWrapper: FC>> path="*" element={ <> -
+
{children} diff --git a/apps/design-system/src/subjects/views/profile-settings-keys/index.tsx b/apps/design-system/src/subjects/views/profile-settings-keys/index.tsx index c029c033a6..786b31ccd5 100644 --- a/apps/design-system/src/subjects/views/profile-settings-keys/index.tsx +++ b/apps/design-system/src/subjects/views/profile-settings-keys/index.tsx @@ -60,7 +60,7 @@ export const ProfileSettingsKeysView = () => { return ( <> -

Keys and Tokens

+

Keys and Tokens

diff --git a/apps/design-system/src/subjects/views/profile-settings/index.tsx b/apps/design-system/src/subjects/views/profile-settings/index.tsx index 640b369dc9..00400f318d 100644 --- a/apps/design-system/src/subjects/views/profile-settings/index.tsx +++ b/apps/design-system/src/subjects/views/profile-settings/index.tsx @@ -26,7 +26,7 @@ export const ProfileSettingsView = () => { return ( -

Account settings

+

Account settings

{isLoadingUser ? ( @@ -37,7 +37,7 @@ export const ProfileSettingsView = () => { - TN + TN
@@ -67,7 +67,7 @@ export const ProfileSettingsView = () => { - +
diff --git a/packages/ui/src/views/profile-settings/components/profile-settings-keys-list.tsx b/packages/ui/src/views/profile-settings/components/profile-settings-keys-list.tsx index 496df70953..39753696a2 100644 --- a/packages/ui/src/views/profile-settings/components/profile-settings-keys-list.tsx +++ b/packages/ui/src/views/profile-settings/components/profile-settings-keys-list.tsx @@ -18,7 +18,7 @@ import { KeysList } from '../types' interface ProfileKeysListProps { publicKeys: KeysList[] - isLoading: boolean + isLoading?: boolean openAlertDeleteDialog: (params: { identifier: string; type: string }) => void useTranslationStore: () => TranslationStore } @@ -56,7 +56,7 @@ export const ProfileKeysList: FC = ({
- + {key.identifier} {key.fingerprint} @@ -72,7 +72,7 @@ export const ProfileKeysList: FC = ({ {key.last_used ? new Date(key.last_used).toLocaleString() : 'Never used'} */} - + = ({ )) ) : ( - +

{t( 'views:profileSettings.noDataKeysDescription', diff --git a/packages/ui/src/views/profile-settings/components/profile-settings-tokens-list.tsx b/packages/ui/src/views/profile-settings/components/profile-settings-tokens-list.tsx index 695ebc1b14..0ab20afe90 100644 --- a/packages/ui/src/views/profile-settings/components/profile-settings-tokens-list.tsx +++ b/packages/ui/src/views/profile-settings/components/profile-settings-tokens-list.tsx @@ -18,7 +18,7 @@ import { TokensList } from '../types' interface ProfileTokensListProps { tokens: TokensList[] - isLoading: boolean + isLoading?: boolean openAlertDeleteDialog: (params: { identifier: string; type: string }) => void useTranslationStore: () => TranslationStore } @@ -53,7 +53,7 @@ export const ProfileTokensList: FC = ({ tokens.map(token => ( - {token.identifier} + {token.identifier}

@@ -71,7 +71,7 @@ export const ProfileTokensList: FC = ({ {timeAgo(new Date(token.issued_at!).getTime())} - + = ({ )) ) : ( - +

{t( 'views:profileSettings.noTokenDescription',