Skip to content

Commit

Permalink
fix: documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi committed Feb 14, 2024
1 parent 2d7a27a commit 7b6758f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Dropdown/DropdownToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export const DropdownToggle: FC<DropdownToggleProps> = ({
...attributes
}) => {
const toggleRef = useRef<HTMLAnchorElement & HTMLButtonElement>(null);
//let dropdownRef = null;

const Tag = tag === 'a' || inNavbar ? 'a' : Button;

Expand Down
2 changes: 1 addition & 1 deletion src/Dropdown/UncontrolledDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ElementType, FC, HTMLAttributes } from 'react';
import classNames from 'classnames';

export interface UncontrolledDropdownProps extends HTMLAttributes<HTMLElement> {
tag: ElementType;
tag?: ElementType;
inNavbar?: boolean;
textCenter?: boolean;
/** Classi aggiuntive da usare per il componente Button */
Expand Down
4 changes: 2 additions & 2 deletions stories/Header/CompleteHeader/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SlimHeaderFullResponsive = ({ theme }: ThemeType) => {
<HeaderContent>
<HeaderBrand>Ente appartenenza</HeaderBrand>
<HeaderRightZone>
<UncontrolledDropdown inNavbar tag='div'>
<UncontrolledDropdown inNavbar>
<DropdownToggle inNavbar caret>
ITA
</DropdownToggle>
Expand Down Expand Up @@ -93,7 +93,7 @@ export class SlimHeader extends Component<{ theme?: 'light' | 'dark' | '' }, { c
</Collapse>
</HeaderLinkZone>
<HeaderRightZone>
<UncontrolledDropdown inNavbar tag='div'>
<UncontrolledDropdown inNavbar>
<DropdownToggle inNavbar caret>
ITA
</DropdownToggle>
Expand Down
4 changes: 2 additions & 2 deletions stories/Header/SlimHeader/basic-full-responsive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const SlimHeader = ({ theme }: ThemeType) => {
<HeaderContent>
<HeaderBrand responsive>Ente appartenenza/Owner</HeaderBrand>
<HeaderRightZone>
<UncontrolledDropdown nav tag='div'>
<DropdownToggle nav caret role='button'>
<UncontrolledDropdown inNavbar>
<DropdownToggle inNavbar caret>
ITA
<Icon icon='it-expand' />
</DropdownToggle>
Expand Down
4 changes: 2 additions & 2 deletions stories/Header/SlimHeader/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const SlimHeader = ({ theme, isOpen, brandText }: HeaderSlimProps) => {
</Collapse>
</HeaderLinkZone>
<HeaderRightZone>
<UncontrolledDropdown nav tag='div'>
<DropdownToggle nav caret role='button'>
<UncontrolledDropdown inNavbar tag='div'>
<DropdownToggle inNavbar caret role='button'>
ITA
<Icon icon='it-expand' color='icon-white' className='d-none d-lg-block' />
</DropdownToggle>
Expand Down

0 comments on commit 7b6758f

Please sign in to comment.