Skip to content

Commit

Permalink
Merge branch 'master' into update-mono-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Aug 29, 2022
2 parents 7aff1d4 + 6572074 commit 33a51d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ jobs:
steps:
- checkout

# login docker hub
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
# build the application image
- run: |
docker build \
Expand Down Expand Up @@ -186,6 +182,10 @@ jobs:
condition:
equal: [master, << pipeline.git.branch >>]
steps:
# login docker hub
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
- run: |
docker push muicom/toolpad:$CIRCLE_SHA1
docker tag muicom/toolpad:$CIRCLE_SHA1 muicom/toolpad:alpha
Expand Down
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ module.exports = {
'@next/next/no-html-link-for-pages': ['error', 'packages/toolpad-app/pages/'],
},
},
...baseline.overrides,
{
// Disabling this rule for now:
// https://github.com/mui/material-ui/blob/9737bc85bb6960adb742e7709e9c3710c4b6cedd/.eslintrc.js#L359
Expand Down
6 changes: 1 addition & 5 deletions packages/toolpad-app/src/utils/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ export function createProvidedContext<T>(
return maybeContext;
};

const Provider = ({ value, ...props }: React.ProviderProps<T>) => {
return <context.Provider value={value} {...props} />;
};

return [useContext, Provider];
return [useContext, context.Provider as React.ComponentType<React.ProviderProps<T>>];
}

export function suspendPromise<T>(promise: Promise<T>): () => T {
Expand Down

0 comments on commit 33a51d9

Please sign in to comment.