1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

fix(ui): kubernetes create from manifest page misalignments and incorrect loading icon [R8S-68] (#88)

This commit is contained in:
Malcolm Lockyer 2024-11-07 09:04:24 +13:00 committed by GitHub
parent 458d722d47
commit 81322664ea
5 changed files with 31 additions and 25 deletions

View file

@ -1,5 +1,5 @@
import { Loader2 } from 'lucide-react';
import { PropsWithChildren } from 'react';
import { ReactNode } from 'react';
import clsx from 'clsx';
import { Icon } from '@@/Icon';
@ -7,6 +7,7 @@ import { Icon } from '@@/Icon';
type Size = 'xs' | 'sm' | 'md';
export type Props = {
children: ReactNode;
className?: string;
size?: Size;
};
@ -17,11 +18,7 @@ const sizeStyles: Record<Size, string> = {
md: 'text-md',
};
export function InlineLoader({
children,
className,
size = 'sm',
}: PropsWithChildren<Props>) {
export function InlineLoader({ children, className, size = 'sm' }: Props) {
return (
<div
className={clsx(