Skip to content

Commit

Permalink
chore: use readonly on properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jowjow22 committed Sep 27, 2024
1 parent fa5b319 commit fb57b25
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class AtomModal {

private modal: HTMLAtomModalElement

private alertMap: AlertType = {
private readonly alertMap: AlertType = {
alert: {
icon: 'alert-outline',
color: 'warning',
Expand All @@ -59,24 +59,24 @@ export class AtomModal {
}
}

private handleDidDimiss = () => {
private readonly handleDidDimiss = () => {
this.atomDidDismiss.emit(this.modal)
}

private handleDidPresent = () => {
private readonly handleDidPresent = () => {
this.atomDidPresent.emit(this.modal)
}

private handleCloseClick = async () => {
private readonly handleCloseClick = async () => {
this.atomCloseClick.emit(this.modal)
this.modal.close()
}

private handleSecondaryClick = () => {
private readonly handleSecondaryClick = () => {
this.atomSecondaryClick.emit(this.modal)
}

private handlePrimaryClick = () => {
private readonly handlePrimaryClick = () => {
this.atomPrimaryClick.emit(this.modal)
}

Expand Down

0 comments on commit fb57b25

Please sign in to comment.