Skip to content

Commit

Permalink
Merge pull request #2321 from gluestack/fix/tab-panel
Browse files Browse the repository at this point in the history
fix: tabpanel unstyled and minor alert component changes
  • Loading branch information
Viraj-10 authored Jul 18, 2024
2 parents 3204f8b + 835c54b commit 02dfd65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { InfoIcon } from '@/components/ui/icon';

const AlertBasic = ({ ...props }: any) => {
return (
<Alert {...props} className="gap-3">
<Alert {...props}>
<AlertIcon as={InfoIcon} />
<AlertText>Selection successfully moved!</AlertText>
</Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const Alert = React.forwardRef(
{
className,
variant = 'solid',
action = 'info',
action = 'muted',
...props
}: { className?: string } & IAlertProps,
ref?: any
Expand Down
3 changes: 2 additions & 1 deletion packages/unstyled/tabs/src/TabPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const TabPanel = <StyledTabPanel,>(
tabIndex={value === currentActiveTab ? 0 : -1}
role={Platform.OS === 'web' ? 'tabpanel' : undefined}
{...(props as StyledTabPanel)}
style={{ display: isActive ? 'flex' : 'none' }}
//@ts-ignore
style={[{ display: isActive ? 'flex' : 'none' }, props.style]}
ref={ref}
/>
);
Expand Down

0 comments on commit 02dfd65

Please sign in to comment.