diff options
Diffstat (limited to 'packages/react-docs')
-rw-r--r-- | packages/react-docs/CHANGELOG.md | 3 | ||||
-rw-r--r-- | packages/react-docs/package.json | 1 | ||||
-rw-r--r-- | packages/react-docs/src/components/custom_enum.tsx | 3 | ||||
-rw-r--r-- | packages/react-docs/src/utils/utils.ts | 5 |
4 files changed, 5 insertions, 7 deletions
diff --git a/packages/react-docs/CHANGELOG.md b/packages/react-docs/CHANGELOG.md index bd459cc77..a90cf19f0 100644 --- a/packages/react-docs/CHANGELOG.md +++ b/packages/react-docs/CHANGELOG.md @@ -1,5 +1,6 @@ # CHANGELOG -## v0.0.2 - _TBD_ +## v0.0.2 - _TBD, 2018_ * Move example out into a separate sub-package + * Consolidate all `console.log` calls into `logUtils` in the `@0xproject/utils` package (#452) diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index a3e6b55d8..991af9a37 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -38,6 +38,7 @@ }, "dependencies": { "@0xproject/react-shared": "^0.0.1", + "@0xproject/utils": "^0.4.1", "basscss": "^8.0.3", "compare-versions": "^3.0.1", "lodash": "^4.17.4", diff --git a/packages/react-docs/src/components/custom_enum.tsx b/packages/react-docs/src/components/custom_enum.tsx index deb33ff1d..1fe55eedc 100644 --- a/packages/react-docs/src/components/custom_enum.tsx +++ b/packages/react-docs/src/components/custom_enum.tsx @@ -1,3 +1,4 @@ +import { logUtils } from '@0xproject/utils'; import * as _ from 'lodash'; import * as React from 'react'; @@ -16,7 +17,7 @@ export interface CustomEnumProps { export function CustomEnum(props: CustomEnumProps) { const type = props.type; if (!_.startsWith(type.defaultValue, STRING_ENUM_CODE_PREFIX)) { - utils.consoleLog('We do not yet support `Variable` types that are not strEnums'); + logUtils.log('We do not yet support `Variable` types that are not strEnums'); return null; } // Remove the prefix and postfix, leaving only the strEnum values without quotes. diff --git a/packages/react-docs/src/utils/utils.ts b/packages/react-docs/src/utils/utils.ts index 8e1a80a44..f8c1fefff 100644 --- a/packages/react-docs/src/utils/utils.ts +++ b/packages/react-docs/src/utils/utils.ts @@ -1,9 +1,4 @@ export const utils = { - consoleLog(message: string) { - /* tslint:disable */ - console.log(message); - /* tslint:enable */ - }, spawnSwitchErr(name: string, value: any) { return new Error(`Unexpected switch value: ${value} encountered for ${name}`); }, |