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:
parent
458d722d47
commit
81322664ea
5 changed files with 31 additions and 25 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue