Skip to content

Commit

Permalink
double quotes -> single
Browse files Browse the repository at this point in the history
  • Loading branch information
hitjim committed Jan 27, 2023
1 parent 53dbf11 commit 3854d02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/app/modules/pillbox/pillbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ export class AppPillboxComponent implements OnInit {
ngOnInit(): void {
// Any more complex than this, and we'll need enums and a prop to 'switch' on
// for handling various *Content* types
if ("numerator" in this.data) {
if ('numerator' in this.data) {
// Handle PillboxFraction - a bespoke usecase
let { left, right } = this.makeFractionContent(this.data);
this.contentFirst = left;
this.contentSecond = right;
this.contentFraction = this.data;
} else if ("left" in this.data) {
} else if ('left' in this.data) {
// Handle PillboxContentPair
// PillboxContent or PillboxColumnContent on either side with a vertical divider
let { left, right } = this.makePairContent(this.data);
this.contentFirst = left;
this.contentSecond = right;
} else if ("top" in this.data) {
} else if ('top' in this.data) {
// Handle a single PillboxColumnContent
this.setContent(this.data.top);
this.setContent(this.data.bottom);
this.contentFirst = this.data;
} else if ("label" in this.data) {
} else if ('label' in this.data) {
// Handle a single PillboxContent
this.setContent(this.data);
this.contentFirst = {
Expand Down Expand Up @@ -112,7 +112,7 @@ export class AppPillboxComponent implements OnInit {
var left: PillboxColumnContent;
var right: PillboxColumnContent;

if ("top" in pair.left) {
if ('top' in pair.left) {
left = pair.left;
this.setContent(left.bottom);
} else {
Expand All @@ -123,7 +123,7 @@ export class AppPillboxComponent implements OnInit {
}
this.setContent(left.top);

if ("top" in pair.right) {
if ('top' in pair.right) {
right = pair.right;
this.setContent(right.bottom);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/app/modules/pillbox/pillbox.models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TooltipModel } from "../tooltip/tooltip.models";
import { TooltipModel } from '../tooltip/tooltip.models';

/** Wrapper type to allow multiple formats for input data */
export type PillboxContentType =
Expand Down

0 comments on commit 3854d02

Please sign in to comment.