Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed May 15, 2024
1 parent 9d7f468 commit e4dc270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Component, Input } from '@angular/core';
import { CtrService } from 'src/app/scenario/ctr.service';

@Component({
selector: 'copy-to-clipboard',
selector: 'app-copy-to-clipboard',
templateUrl: './copy-to-clipboard.component.html',
styleUrls: ['./copy-to-clipboard.component.scss'],
})
export class CopyToClipboardComponent {
@Input() ctrId: string;

wasClicked: boolean = false;
wasClicked = false;

constructor(private ctrService: CtrService) {}

Expand Down
4 changes: 2 additions & 2 deletions src/app/hf-markdown/hf-markdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ ${token}`;
let copyCodeDiv = '';
if (copyCode) {
const id = this.ctrService.registerCode(code);
copyCodeDiv = `<copy-to-clipboard ctrId='${id}'></copy-to-clipboard>`;
copyCodeDiv = `<app-copy-to-clipboard ctrId='${id}'></app-copy-to-clipboard>`;
}

let fileNameTag = fileName
const fileNameTag = fileName
? `<p class="filename">${fileName} ${copyCodeDiv}</p>`
: `<p class="language">${language} ${copyCodeDiv}</p>`;
const classAttr = `language-${language}`;
Expand Down

0 comments on commit e4dc270

Please sign in to comment.