Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmguo committed Jan 19, 2024
1 parent 2665388 commit 379b048
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMenu } from '@/hooks/useMenu/useMenu';
import type { IMenuItem, LayoutType } from '@kadena/docs-tools';
import {
Box,
NavHeader,
NavHeaderButtonLink,
NavHeaderLink,
Expand All @@ -21,7 +20,6 @@ import { SearchButton } from './SearchButton';
import { ThemeToggle } from './ThemeToggle';
import {
headerClass,
hideOnMobileClass,
hideOnTabletClass,
navLinkClass,
skipNavClass,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ export const navLinkClass = style([
},
]);

export const hideOnMobileClass = style([
responsiveStyle({
xs: { display: 'none' },
sm: { display: 'flex' },
}),
]);

export const socialsClass = style([
responsiveStyle({
xs: { display: 'none' },
Expand Down
6 changes: 2 additions & 4 deletions packages/libs/react-ui/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ export interface IButtonProps
extends PickedAriaButtonProps,
ISharedButtonProps {}

function BaseButton(
props: IButtonProps,
forwardedRef: ForwardedRef<HTMLButtonElement>,
) {
const BaseButton = (props: IButtonProps,
forwardedRef: ForwardedRef<HTMLButtonElement>) => {
props = disableLoadingProps(props);
const ref = useObjectRef(forwardedRef);
const { buttonProps, isPressed } = useButton(props, ref);
Expand Down
8 changes: 3 additions & 5 deletions packages/libs/react-ui/src/components/Button/ToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ export interface IToggleButtonProps
extends PickedAriaToggleButtonProps,
ISharedButtonProps {}

function ToggleButtonBase(
props: IToggleButtonProps,
forwardedRef: ForwardedRef<HTMLButtonElement>,
) {
const ToggleButtonBase = (props: IToggleButtonProps,
forwardedRef: ForwardedRef<HTMLButtonElement>) => {
props = disableLoadingProps(props);
const ref = useObjectRef(forwardedRef);
let state = useToggleState(props);
const state = useToggleState(props);
const { buttonProps, isPressed } = useToggleButton(props, state, ref);
const { hoverProps, isHovered } = useHover(props);
const { focusProps, isFocused, isFocusVisible } = useFocusRing(props);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { atoms } from '@theme/atoms.css';
import { darkThemeClass } from '@theme/vars.css';
import cn from 'classnames';
import type { ComponentPropsWithRef, FC, ReactElement, ReactNode } from 'react';
Expand Down

0 comments on commit 379b048

Please sign in to comment.