mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
tidy(ui): clean up unused code 4
variables, types and schemas
This commit is contained in:
@@ -2,11 +2,11 @@ import { Flex, Heading } from '@invoke-ai/ui-library';
|
||||
import type { PropsWithChildren } from 'react';
|
||||
import { memo } from 'react';
|
||||
|
||||
export type StickyScrollableHeadingProps = {
|
||||
type StickyScrollableHeadingProps = {
|
||||
title: string;
|
||||
};
|
||||
|
||||
export const StickyScrollableHeading = memo((props: StickyScrollableHeadingProps) => {
|
||||
const StickyScrollableHeading = memo((props: StickyScrollableHeadingProps) => {
|
||||
return (
|
||||
<Flex ps={2} pb={4} position="sticky" zIndex={1} top={0} bg="base.800">
|
||||
<Heading size="sm">{props.title}</Heading>
|
||||
@@ -16,9 +16,9 @@ export const StickyScrollableHeading = memo((props: StickyScrollableHeadingProps
|
||||
|
||||
StickyScrollableHeading.displayName = 'StickyScrollableHeading';
|
||||
|
||||
export type StickyScrollableContentProps = PropsWithChildren;
|
||||
type StickyScrollableContentProps = PropsWithChildren;
|
||||
|
||||
export const StickyScrollableContent = memo((props: StickyScrollableContentProps) => {
|
||||
const StickyScrollableContent = memo((props: StickyScrollableContentProps) => {
|
||||
return (
|
||||
<Flex p={4} borderRadius="base" bg="base.750" flexDir="column" gap={4}>
|
||||
{props.children}
|
||||
|
||||
Reference in New Issue
Block a user