fix: Fix PR issues

This commit is contained in:
deytenit committed 2026-03-07 10:51:54 +03:00
1 parent d2903a3715
commit 6aa3a03319
20 files changed
+291 -67

No files matched your search

@@ -6,8 +6,8 @@ import { Separator } from '../Separator/Separator';
import { Text } from '../Text/Text';
import { VStack } from '../VStack/VStack';
import type { ClassNameProps } from '@ermnvldmr/stl';
import type { ContainerProps } from '../Container/Container';
import type { ClassNameProps } from '@ermnvldmr/stl';
/**
* Props for the Article component.
@@ -21,12 +21,12 @@ export interface ArticleProps extends ClassNameProps {
additionalText?: string;
/**
* Press interaction handler.
* @note Cannot be used with `href`.
* Cannot be used with `href`.
*/
onPress?: ContainerProps['onPress'];
/**
* If provided, the container will be rendered as an `<a>` tag for navigation.
* @note Cannot be used with `onPress`.
* Cannot be used with `onPress`.
*/
href?: ContainerProps['href'];
/** The main article body content */
@@ -54,7 +54,7 @@ export const Article = memo(function Article({
className,
}: ArticleProps) {
return (
<Container padding={4} href={href} onPress={onPress} className={className}>
<Container className={className} href={href} padding={4} onPress={onPress}>
<VStack align="stretch" gap={4}>
<Header level={4}>{headline}</Header>