diff --git a/apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss b/apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss index 0efe9563a..722e366ee 100644 --- a/apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss +++ b/apps/client/src/features/app-settings/panel-utils/PanelUtils.module.scss @@ -163,6 +163,20 @@ $inner-padding: 1rem; animation: animloader 1s ease-in infinite; } +.empty { + background-color: $black-10; + text-align: center; + color: $muted-gray; + + td { + padding: 2rem; + } + + button { + margin-top: 1rem; + } +} + @keyframes animloader { 0% { transform: scale(0); diff --git a/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx b/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx index 4020d73d6..fa9bcde24 100644 --- a/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx +++ b/apps/client/src/features/app-settings/panel-utils/PanelUtils.tsx @@ -1,4 +1,6 @@ import { HTMLAttributes, ReactNode } from 'react'; +import { Button } from '@chakra-ui/react'; +import { IoAdd } from '@react-icons/all-files/io5/IoAdd'; import { cx } from '../../../common/utils/styleUtils'; @@ -52,8 +54,21 @@ export function Table({ className, children }: { className?: string; children: R ); } -export function ListGroup({ children }: { children: ReactNode }) { - return ; +export function TableEmpty({ handleClick }: { handleClick: () => void }) { + return ( + + +
No data yet
+ + + + ); +} + +export function ListGroup({ className, children }: { className?: string; children: ReactNode }) { + return ; } export function ListItem({ children }: { children: ReactNode }) { diff --git a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx index a5427e9bd..dac0a861c 100644 --- a/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx +++ b/apps/client/src/features/app-settings/panel/feature-settings-panel/UrlPresetsForm.tsx @@ -149,6 +149,7 @@ export default function UrlPresetsForm() { + {fields.length === 0 && } {fields.map((preset, index) => { const maybeAliasError = errors.data?.[index]?.alias?.message; const maybeUrlError = errors.data?.[index]?.pathAndParams?.message;