Skip to content

Commit

Permalink
Adding console logs for testing on znd
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicScrewdriver committed Jan 3, 2025
1 parent 6173771 commit 176cc59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/perseus/src/components/input-with-examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ class InputWithExamples extends React.Component<Props, State> {
render(): React.ReactNode {
const input = this._renderInput();

console.log(

Check failure on line 168 in packages/perseus/src/components/input-with-examples.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

Unexpected console statement
"this.props.examples input-with-examples",
this.props.examples,
);
const examplesContent =
this.props.examples.length <= 2
? this.props.examples.join(" ") // A single item (with or without leading text) is not a "list"
Expand All @@ -181,6 +185,8 @@ class InputWithExamples extends React.Component<Props, State> {
const showExamples =
this.props.shouldShowExamples && this.state.showExamples;

console.log("examplesContent input-with-examples", examplesContent);

Check failure on line 188 in packages/perseus/src/components/input-with-examples.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

Unexpected console statement

return (
<Tooltip
className="perseus-formats-tooltip preview-measure"
Expand Down
2 changes: 2 additions & 0 deletions packages/perseus/src/widgets/numeric-input/numeric-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ export class NumericInput
},
});

console.log("this.examples in numeric-input.tsx", this.examples());

Check failure on line 280 in packages/perseus/src/widgets/numeric-input/numeric-input.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

Unexpected console statement

return (
<InputWithExamples
ref={(ref) => (this.inputRef = ref)}
Expand Down

0 comments on commit 176cc59

Please sign in to comment.