aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/pages/documentation/event_definition.tsx4
-rw-r--r--packages/website/ts/pages/documentation/method_signature.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/pages/documentation/event_definition.tsx b/packages/website/ts/pages/documentation/event_definition.tsx
index 3b1b86112..469e6bb37 100644
--- a/packages/website/ts/pages/documentation/event_definition.tsx
+++ b/packages/website/ts/pages/documentation/event_definition.tsx
@@ -55,7 +55,7 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
private renderEventCode() {
const indexed = <span style={{color: CUSTOM_GREEN}}> indexed</span>;
const eventArgs = _.map(this.props.event.eventArgs, (eventArg: EventArg) => {
- const t = (
+ const type = (
<Type
type={eventArg.type}
docsInfo={this.props.docsInfo}
@@ -63,7 +63,7 @@ export class EventDefinition extends React.Component<EventDefinitionProps, Event
);
return (
<span key={`eventArg-${eventArg.name}`}>
- {eventArg.name}{eventArg.isIndexed ? indexed : ''}: {t},
+ {eventArg.name}{eventArg.isIndexed ? indexed : ''}: {type},
</span>
);
});
diff --git a/packages/website/ts/pages/documentation/method_signature.tsx b/packages/website/ts/pages/documentation/method_signature.tsx
index 197252fb4..846c9fa4f 100644
--- a/packages/website/ts/pages/documentation/method_signature.tsx
+++ b/packages/website/ts/pages/documentation/method_signature.tsx
@@ -48,7 +48,7 @@ function renderParameters(
const parameters = method.parameters;
const params = _.map(parameters, (p: Parameter) => {
const isOptional = p.isOptional;
- const t = (
+ const type = (
<Type
type={p.type}
typeDefinitionByName={typeDefinitionByName}
@@ -57,7 +57,7 @@ function renderParameters(
);
return (
<span key={`param-${p.type}-${p.name}`}>
- {p.name}{isOptional && '?'}: {t}
+ {p.name}{isOptional && '?'}: {type}
</span>
);
});