Skip to content

Commit

Permalink
Refactoring...
Browse files Browse the repository at this point in the history
  • Loading branch information
Tylerian committed Oct 17, 2019
1 parent 836e0b0 commit 2e1f664
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/utilities/use-styletron.ts → src/hooks/use-styletron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function useStyletron(): StandardEngine {

invariant(
engine,
'No Apollo Client instance can be found. Please ensure that you ' +
'have called `ApolloProvider` higher up in your tree.'
"No Styletron instance can be found. Please ensure that you " +
"have called \"StyletronProvider\" higher up in your tree."
);

return engine!;
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import {

import {
useStyletron
} from "./utilities/use-styletron";
} from "./hooks/use-styletron";

import {
useStyletronDriver
} from "./utilities/use-styletron-driver";
} from "./hooks/use-styletron-driver";

import {
withStyletron
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/with-styletron.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

import {
useStyletron
} from "./use-styletron";
} from "../hooks/use-styletron";

const withStyletron = (Component: any) => (props: any) => {
const styletron = useStyletron();
Expand Down

0 comments on commit 2e1f664

Please sign in to comment.