Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named Component name #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/workspace/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface State {
hover: boolean
}

export default class extends PureComponent<Props, State> {
export default class Button extends PureComponent<Props, State> {
static defaultProps = {
active: false,
inverse: false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface Props {
errorLineNumber?: number
}

export default class extends PureComponent<Props> {
export default class Editor extends PureComponent<Props> {
static defaultProps = {
initialValue: null,
value: null,
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/Inspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Inspector = Loadable({
import('react-inspector').then(({ default: Inspector, chromeLight }) => {
const theme = createInspectorTheme(chromeLight)

return (props: InspectorProps) => <Inspector {...props} theme={theme} />
return function LazyInspector(props: InspectorProps) { return <Inspector {...props} theme={theme} /> }
}),
loading: () => null,
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/PlayerFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface State {
id: string | null
}

export default class extends PureComponent<Props, State> {
export default class PlayerFrame extends PureComponent<Props, State> {
static defaultProps = {
preset: 'react-native',
platform: 'ios',
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ type WorkspacePaneProps = {
renderPane: (options: PaneOptions, index: number) => ReactNode
}

const WorkspacePane = memo((props: WorkspacePaneProps) => {
const WorkspacePane = memo(function WorkspacePane (props: WorkspacePaneProps) {
const {
environmentName: environmentName,
ready,
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/panes/PlayerPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface Props {
}

const PlayerPane = memo(
React.forwardRef<PlayerFrame, Props>(function renderPlayer(
React.forwardRef<PlayerFrame, Props>(function PlayerPane(
{
options,
externalStyles,
Expand Down