Skip to content

Styling dialog#49

Merged
3 commits merged intomainfrom
styling-dialog
Feb 24, 2026
Merged

Styling dialog#49
3 commits merged intomainfrom
styling-dialog

Conversation

@soni-sourav
Copy link
Collaborator

No description provided.

if (fileName) return fileName
if (filePath) return basename(filePath)
return 'File'
const name = fileName || (filePath ? basename(filePath) : 'File')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It always better to write clean code and avoid complex statements, specially when the fileName is null and not string:

let rawName = 'File'

if (fileName) {
  rawName = fileName
} else if (filePath) {
  rawName = basename(filePath)
}

return rawName.replace(/\.prv$/, '')

@milinddeore milinddeore mentioned this pull request Feb 23, 2026
merged conflicts

Bug: #55
Test: Verified above desktop changes with android device
@milinddeore milinddeore closed this pull request by merging all changes into main in e028cf3 Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants