mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 09:59:10 +00:00
chore: move src/common/utils to @roleypoly/misc-utils
This commit is contained in:
parent
a374030438
commit
65a8760e86
36 changed files with 38 additions and 465 deletions
|
@ -1,5 +1,5 @@
|
|||
import { withContext } from '@roleypoly/misc-utils/withContext';
|
||||
import * as React from 'react';
|
||||
import { withContext } from '../../../../src/common/utils/withContext';
|
||||
|
||||
export type ScreenSize = {
|
||||
onSmallScreen: boolean;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { FeatureFlagDecorator } from '@roleypoly/misc-utils/featureFlags/react/storyDecorator';
|
||||
import * as React from 'react';
|
||||
import { FeatureFlagDecorator } from '../../../../src/common/utils/featureFlags/react/storyDecorator';
|
||||
import { FeatureGate } from './FeatureGate';
|
||||
|
||||
export default {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import * as React from 'react';
|
||||
import {
|
||||
FeatureFlag,
|
||||
FeatureFlagsContext,
|
||||
} from '../../../../src/common/utils/featureFlags/react';
|
||||
} from '@roleypoly/misc-utils/featureFlags/react';
|
||||
import * as React from 'react';
|
||||
|
||||
export type FeatureGateProps = {
|
||||
featureFlag: FeatureFlag;
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
import { numberToChroma } from '@roleypoly/design-system/atoms/colors';
|
||||
import { evaluatePermission, permissions } from '@roleypoly/misc-utils/hasPermission';
|
||||
import { Role as RPCRole, RoleSafety } from '@roleypoly/types';
|
||||
import chroma from 'chroma-js';
|
||||
import * as React from 'react';
|
||||
import { FaCheck, FaTimes } from 'react-icons/fa';
|
||||
import {
|
||||
evaluatePermission,
|
||||
permissions,
|
||||
} from '../../../../src/common/utils/hasPermission';
|
||||
import * as styled from './Role.styled';
|
||||
|
||||
type Props = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue