@ -23,10 +23,7 @@ type ActionButtonAsLink = BaseActionButtonProps &
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
type ActionButtonAsExternal = BaseActionButtonProps &
 | 
			
		||||
  Omit<
 | 
			
		||||
    React.AnchorHTMLAttributes<HTMLAnchorElement>,
 | 
			
		||||
    keyof BaseActionButtonProps
 | 
			
		||||
  > & {
 | 
			
		||||
  Omit<LinkProps, keyof BaseActionButtonProps> & {
 | 
			
		||||
    Element: 'externalLink'
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -69,12 +66,17 @@ export const ActionButton = (props: ActionButtonProps) => {
 | 
			
		||||
      )
 | 
			
		||||
    }
 | 
			
		||||
    case 'externalLink': {
 | 
			
		||||
      const { Element, icon, children, className, ...rest } = props
 | 
			
		||||
      const { Element, to, icon, children, className, ...rest } = props
 | 
			
		||||
      return (
 | 
			
		||||
        <a className={classNames} {...rest}>
 | 
			
		||||
        <Link
 | 
			
		||||
          to={to || paths.INDEX}
 | 
			
		||||
          className={classNames}
 | 
			
		||||
          {...rest}
 | 
			
		||||
          target="_blank"
 | 
			
		||||
        >
 | 
			
		||||
          {icon && <ActionIcon {...icon} />}
 | 
			
		||||
          {children}
 | 
			
		||||
        </a>
 | 
			
		||||
        </Link>
 | 
			
		||||
      )
 | 
			
		||||
    }
 | 
			
		||||
    default: {
 | 
			
		||||
 | 
			
		||||
@ -137,7 +137,7 @@ const UserSidebarMenu = ({ user }: { user?: User }) => {
 | 
			
		||||
                  Settings
 | 
			
		||||
                </ActionButton>
 | 
			
		||||
                <ActionButton
 | 
			
		||||
                  Element="link"
 | 
			
		||||
                  Element="externalLink"
 | 
			
		||||
                  to="https://github.com/KittyCAD/modeling-app/discussions"
 | 
			
		||||
                  icon={{ icon: faGithub }}
 | 
			
		||||
                  className="border-transparent dark:border-transparent dark:hover:border-liquid-60"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user