Skip to content

Commit 069a537

Browse files
committed
fix build error 3
1 parent 9592d68 commit 069a537

File tree

27 files changed

+2
-335
lines changed

27 files changed

+2
-335
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/emotion/src/InstUISettingsProvider/index.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424

2525
import { useContext } from 'react'
26-
import PropTypes from 'prop-types'
2726
import { ThemeProvider } from '@emotion/react'
2827

2928
import { TextDirectionContext } from '@instructure/ui-i18n'
@@ -121,15 +120,5 @@ function InstUISettingsProvider({
121120
return providers
122121
}
123122

124-
InstUISettingsProvider.propTypes = {
125-
/* eslint-disable react/require-default-props */
126-
children: PropTypes.node,
127-
theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
128-
dir: PropTypes.oneOf(['ltr', 'rtl']),
129-
instanceCounterMap: PropTypes.instanceOf(Map),
130-
as: PropTypes.string
131-
/* eslint-enable react/require-default-props */
132-
}
133-
134123
export default InstUISettingsProvider
135124
export { InstUISettingsProvider }

packages/emotion/src/styleUtils/ThemeablePropTypes.ts

Lines changed: 0 additions & 121 deletions
This file was deleted.

packages/emotion/src/withStyle.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,6 @@ const withStyle = decorator(
251251
// more info: https://github.com/facebook/react/issues/13455
252252
WithStyle.originalType = ComposedComponent.originalType || ComposedComponent
253253

254-
// we have to pass these on, because sometimes users
255-
// access propTypes of the component in other components
256-
// eslint-disable-next-line react/forbid-foreign-prop-types
257-
WithStyle.propTypes = ComposedComponent.propTypes
258-
WithStyle.defaultProps = ComposedComponent.defaultProps
259-
260254
// These static fields exist on InstUI components
261255
WithStyle.allowedProps = ComposedComponent.allowedProps
262256

packages/ui-i18n/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export { ApplyLocaleContext } from './ApplyLocale/ApplyLocaleContext'
2828
export { textDirectionContextConsumer } from './textDirectionContextConsumer'
2929
export { DateTime } from './DateTime'
3030
export { getTextDirection } from './getTextDirection'
31-
export { I18nPropTypes } from './I18nPropTypes'
3231

3332
export { Locale } from './Locale' // TODO delete this and only keep the ones below
3433
export { getLocale } from './getLocale'

packages/ui-pages/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
{ "path": "../emotion/tsconfig.build.json" },
1515
{ "path": "../shared-types/tsconfig.build.json" },
1616
{ "path": "../ui-dom-utils/tsconfig.build.json" },
17-
{ "path": "../ui-prop-types/tsconfig.build.json" },
1817
{ "path": "../ui-react-utils/tsconfig.build.json" },
1918
{ "path": "../ui-view/tsconfig.build.json" },
2019
{ "path": "../ui-utils/tsconfig.build.json" }

packages/ui-pagination/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
{ "path": "../ui-dom-utils/tsconfig.build.json" },
1818
{ "path": "../ui-icons/tsconfig.build.json" },
1919
{ "path": "../ui-portal/tsconfig.build.json" },
20-
{ "path": "../ui-prop-types/tsconfig.build.json" },
2120
{ "path": "../ui-react-utils/tsconfig.build.json" },
2221
{ "path": "../ui-testable/tsconfig.build.json" },
2322
{ "path": "../ui-themes/tsconfig.build.json" },

packages/ui-popover/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
{ "path": "../ui-dom-utils/tsconfig.build.json" },
1515
{ "path": "../ui-i18n/tsconfig.build.json" },
1616
{ "path": "../ui-position/tsconfig.build.json" },
17-
{ "path": "../ui-prop-types/tsconfig.build.json" },
1817
{ "path": "../ui-react-utils/tsconfig.build.json" },
1918
{ "path": "../ui-testable/tsconfig.build.json" },
2019
{ "path": "../shared-types/tsconfig.build.json" },

packages/ui-portal/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
{ "path": "../ui-babel-preset/tsconfig.build.json" },
1111
{ "path": "../shared-types/tsconfig.build.json" },
1212
{ "path": "../ui-i18n/tsconfig.build.json" },
13-
{ "path": "../ui-prop-types/tsconfig.build.json" },
1413
{ "path": "../ui-react-utils/tsconfig.build.json" },
1514
{ "path": "../ui-dom-utils/tsconfig.build.json" },
1615
{ "path": "../ui-axe-check/tsconfig.build.json" }

packages/ui-position/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
"@instructure/shared-types": "10.23.0",
3030
"@instructure/ui-dom-utils": "10.23.0",
3131
"@instructure/ui-portal": "10.23.0",
32-
3332
"@instructure/ui-react-utils": "10.23.0",
3433
"@instructure/ui-testable": "10.23.0",
3534
"@instructure/ui-utils": "10.23.0",
36-
"@instructure/uid": "10.23.0",
37-
"prop-types": "^15.8.1"
35+
"@instructure/uid": "10.23.0"
3836
},
3937
"devDependencies": {
4038
"@instructure/ui-babel-preset": "10.23.0",

0 commit comments

Comments
 (0)