Skip to content

Commit

Permalink
Undo changes from components inside component-library
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCortina committed Feb 17, 2025
1 parent 28ec5a8 commit 705ba5e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 16 deletions.
3 changes: 1 addition & 2 deletions packages/component-library/src/AlignedText.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { type ComponentProps, type ReactNode, type CSSProperties } from 'react';

import { Block } from './Block';

import { View } from '@actual-app/components/view';
import { View } from './View';

type AlignedTextProps = ComponentProps<typeof View> & {
left: ReactNode;
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import { css } from '@emotion/css';
import { AnimatedLoading } from './icons/AnimatedLoading';
import { styles } from './styles';
import { theme } from './theme';

import { View } from '@actual-app/components/view';
import { View } from './View';

const backgroundColor: {
[key in ButtonVariant | `${ButtonVariant}Disabled`]?: string;
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { type ComponentProps, forwardRef } from 'react';

import { theme } from './theme';

import { View } from '@actual-app/components/view';
import { View } from './View';

type CardProps = ComponentProps<typeof View>;

Expand Down
2 changes: 1 addition & 1 deletion packages/component-library/src/FormError.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type ReactNode, type CSSProperties } from 'react';

import { View } from '@actual-app/components/view';
import { View } from './View';

type FormErrorProps = {
style?: CSSProperties;
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
import { Text } from './Text';
import { theme } from './theme';
import { Toggle } from './Toggle';

import { View } from '@actual-app/components/view';
import { View } from './View';

const MenuLine: unique symbol = Symbol('menu-line');
const MenuLabel: unique symbol = Symbol('menu-label');
Expand Down
2 changes: 1 addition & 1 deletion packages/component-library/src/SpaceBetween.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { type CSSProperties, type ReactNode } from 'react';

import { View } from '@actual-app/components/view';
import { View } from './View';

type SpaceBetweenProps = {
direction?: 'horizontal' | 'vertical';
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import React, {
} from 'react';

import { Text } from './Text';

import { View } from '@actual-app/components/view';
import { View } from './View';

function getChildren(key, children) {
return Children.toArray(children).reduce(
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import React, { type CSSProperties } from 'react';
import { css } from '@emotion/css';

import { theme } from './theme';

import { View } from '@actual-app/components/view';
import { View } from './View';

type ToggleProps = {
id: string;
Expand Down
3 changes: 1 addition & 2 deletions packages/component-library/src/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import React, {
import { Tooltip as AriaTooltip, TooltipTrigger } from 'react-aria-components';

import { styles } from './styles';

import { View } from '@actual-app/components/view';
import { View } from './View';

type TooltipProps = Partial<ComponentProps<typeof AriaTooltip>> & {
children: ReactNode;
Expand Down

0 comments on commit 705ba5e

Please sign in to comment.