Skip to content

Commit b5d3501

Browse files
committed
fix build error 12
1 parent ea9b4a1 commit b5d3501

File tree

11 files changed

+3
-41
lines changed

11 files changed

+3
-41
lines changed

docs/contributor-docs/theming/theming-class-based.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ import generateComponentTheme from './theme'
2727

2828
@withStyle(generateStyle, generateComponentTheme)
2929
class Button extends React.Component {
30-
static propTypes = {
31-
// eslint-disable-next-line react/require-default-props
32-
makeStyles: PropTypes.func,
33-
// eslint-disable-next-line react/require-default-props
34-
styles: PropTypes.object
35-
}
36-
3730
componentDidMount() {
3831
this.props.makeStyles()
3932
}
@@ -213,13 +206,6 @@ type: code
213206
---
214207
// Button/index.js
215208
class Button extends React.Component {
216-
static propTypes = {
217-
// eslint-disable-next-line react/require-default-props
218-
makeStyles: PropTypes.func,
219-
// eslint-disable-next-line react/require-default-props
220-
styles: PropTypes.object
221-
}
222-
223209
constructor(props) {
224210
super(props)
225211

packages/__docs__/src/Figure/index.tsx

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

2525
import { Children, Component, PropsWithChildren } from 'react'
26-
import PropTypes from 'prop-types'
2726

2827
import { omitProps, ensureSingleChild } from '@instructure/ui-react-utils'
2928
import {
@@ -47,10 +46,6 @@ import { allowedProps } from './props'
4746
class FigureItem extends Component<PropsWithChildren> {
4847
static displayName = 'FigureItem'
4948

50-
static propTypes = {
51-
children: PropTypes.node
52-
}
53-
5449
static defaultProps = {
5550
children: null
5651
}

packages/__docs__/src/Figure/props.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
* SOFTWARE.
2323
*/
2424
import type { ComponentStyle, WithStyleProps } from '@instructure/emotion'
25-
import { Children } from '@instructure/ui-prop-types'
2625

2726
import {
2827
Shadows,

packages/__docs__/src/Nav/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ type NavState = {
5555
announcement: string | null
5656
}
5757
export type { NavProps, NavState }
58-
export { allowedProps, propTypes }
58+
export { allowedProps }

packages/__docs__/src/NavToggle/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ const allowedProps: AllowedPropKeys = [
4646
'shouldBlur'
4747
]
4848
export type { NavToggleProps }
49-
export { allowedProps, propTypes }
49+
export { allowedProps }

packages/__docs__/src/Params/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { Component } from 'react'
2626
import { Table } from '@instructure/ui-table'
2727
import { compileMarkdown } from '../compileMarkdown'
2828
import type { ParamsProps } from './props'
29-
import { propTypes } from './props'
3029
import { Heading } from '@instructure/ui-heading'
3130

3231
class Params extends Component<ParamsProps> {

packages/__docs__/src/TableOfContents/props.ts

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

2525
import type { DocDataType } from '../Document/props'
26-
import { DocPropType } from '../Document/props'
2726

2827
type TableOfContentsOwnProps = {
2928
doc: DocDataType

packages/ui-drawer-layout/src/DrawerLayout/__fixtures__/DrawerLayout.fixture.tsx

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

2525
import { Component } from 'react'
26-
import PropTypes from 'prop-types'
2726

2827
import { DrawerLayout } from '../index'
2928
import type { DrawerLayoutProps } from '../props'
@@ -38,14 +37,6 @@ type DrawerLayoutFixtureProps = {
3837
}
3938

4039
export default class DrawerLayoutFixture extends Component<DrawerLayoutFixtureProps> {
41-
static propTypes = {
42-
layoutWidth: PropTypes.string,
43-
trayWidth: PropTypes.string,
44-
placement: PropTypes.string,
45-
open: PropTypes.bool,
46-
onOverlayTrayChange: PropTypes.func
47-
}
48-
4940
static defaultProps = {
5041
layoutWidth: '600px',
5142
trayWidth: '200px',

packages/ui-editable/src/Editable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { deepEqual } from '@instructure/ui-utils'
2727
import { logWarn as warn } from '@instructure/console'
2828
import { requestAnimationFrame } from '@instructure/ui-dom-utils'
2929

30-
import { propTypes, allowedProps, EditableState } from './props'
30+
import { allowedProps, EditableState } from './props'
3131
import type {
3232
EditableProps,
3333
GetContainerProps,

packages/ui-modal/src/Modal/__tests__/Modal.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,6 @@ describe('<Modal />', () => {
408408

409409
describe('managed focus', () => {
410410
class ModalExample extends Component<Partial<ModalProps>> {
411-
static propTypes = {
412-
// eslint-disable-next-line react/forbid-foreign-prop-types
413-
...Modal.propTypes
414-
}
415-
416411
render() {
417412
const { label, ...props } = this.props
418413

0 commit comments

Comments
 (0)