Skip to content

Commit

Permalink
feat: use global import from tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
flavia-moraes committed May 27, 2024
1 parent 9abad67 commit 5fb911c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/system/src/flex/flex.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
order,
flexes,
gap,
} from '.';
} from './flex';

const spacings = [0, 4, 8, 12];

Expand Down
2 changes: 2 additions & 0 deletions packages/system/src/flex/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './flex';
export type { Flex } from './types';
4 changes: 2 additions & 2 deletions packages/system/src/flex/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tokens from '@gympass/yoga-tokens';
import { spacing } from '@gympass/yoga-tokens';

type GapValues = typeof tokens.spacing | string | number;
type GapValues = typeof spacing | string | number;

export type Flex = {
flexDirection?: string;
Expand Down

0 comments on commit 5fb911c

Please sign in to comment.