Skip to content

Commit

Permalink
review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Dec 5, 2024
1 parent 9eeab20 commit 79619cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
7 changes: 1 addition & 6 deletions client/src/community/contributor-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ import { LitElement, html } from "lit";

import styles from "./contributor-list.scss?css" with { type: "css" };

/**
* @typedef {Object} ContributorData
* @property {string} name
* @property {string} github
* @property {string} [org]
*/
/** @import { ContributorData } from "./types" */

export class ContributorList extends LitElement {
static properties = {
Expand Down
5 changes: 5 additions & 0 deletions client/src/community/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface ContributorData {
name: string;
github: string;
org?: string;
}
6 changes: 2 additions & 4 deletions client/src/curriculum/scrim-inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,8 @@ class ScrimInline extends LitElement {
* @param {MouseEvent} e
*/
#toggle(e) {
if (e.target) {
/** @type {HTMLElement} */
(e.target).dataset.glean =
`${CURRICULUM}: scrim fullscreen -> ${this._fullscreen ? 0 : 1} id:${this._scrimId}`;
if (e.target instanceof HTMLElement) {
e.target.dataset.glean = `${CURRICULUM}: scrim fullscreen -> ${this._fullscreen ? 0 : 1} id:${this._scrimId}`;
}
if (this._fullscreen) {
this.#close();
Expand Down

0 comments on commit 79619cd

Please sign in to comment.