nicolium: what is IComponentInterface supposed to mean lol

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-25 23:42:42 +01:00
parent b7b6c7c09b
commit 1e029b5d05
5 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ import './tabs.css';
const HORIZONTAL_PADDING = 8;
const AnimatedContext = React.createContext(null);
interface IAnimatedInterface {
interface IAnimatedTabs {
/** Callback when a tab is chosen. */
onChange(index: number): void;
/** Default tab index. */
@@ -27,7 +27,7 @@ interface IAnimatedInterface {
}
/** Tabs with a sliding active state. */
const AnimatedTabs: React.FC<IAnimatedInterface> = ({ children, ...rest }) => {
const AnimatedTabs: React.FC<IAnimatedTabs> = ({ children, ...rest }) => {
const [activeRect, setActiveRect] = React.useState(null);
const ref = React.useRef<any>(null);
const rect = useRect(ref);