Skip to content

Commit

Permalink
✨ feat: Add file extension in FileExplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Amzoobalance committed Feb 21, 2023
1 parent 5394236 commit 048e324
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ export default function File({ file }: Props) {
.fold(({ x, y }) => dispatch(showContextMenu({ target: file, x, y }))),
)

const name =
file.extension === ".md" ? file.readableName : `${file.readableName}${file.extension}`

return (
<ActionListItem
style={{ paddingLeft }}
text={file.readableName}
text={name}
Icon={Icon}
isCurrent={isCurrent}
onClick={handleClick}
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/commands/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ChangeEmailCommand } from "./commands/change-email"
import { ChangePasswordCommand } from "./commands/change-password"
import { DeleteAccount } from "./commands/delete-account"
// import { LoginCommand } from "./commands/login"
import { LoginCommand } from "./commands/login"
import { LogoutCommand } from "./commands/logout"
// import { RegisterCommand } from "./commands/register"
import { RegisterCommand } from "./commands/register"
import { slice } from "./store"
import en from "./translations/en.json"
import ru from "./translations/ru.json"
Expand All @@ -13,8 +13,8 @@ import { createCommandExtension } from "../../core/extensions/create-command-ext
export default createCommandExtension("auth", {
translations: { en, ru },
commands: [
// RegisterCommand,
// LoginCommand,
RegisterCommand,
LoginCommand,
LogoutCommand,
ChangePasswordCommand,
ChangeEmailCommand,
Expand Down

0 comments on commit 048e324

Please sign in to comment.