Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Mobile: Use stronger types in side-menu and support FontAwesome icons #11247

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Oct 23, 2024

Summary

This pull request refactors side-menu-content.tsx in the mobile app to:

  1. Use stronger types:
    • For example, styles_ no longer has type any.
  2. Support (but, for now, not use) folders with FontAwesome icons (see Android trash icon is an emoji instead #11202).

Testing

Screenshot comparison

Web/Chromium:
screenshot with before and after

Additional manual testing

Web/Chromium:

  1. Right-click on a notebook and select "edit".
  2. Verify that the edit screen is shown.
  3. Show the sidebar.
  4. Click "All notes".
  5. Verify that "All notes" is shown.
  6. Click on a notebook.
  7. Verify that the notebook is opened.
  8. Click "Configuration".
  9. Verify that the settings screen is open.

@@ -590,7 +623,7 @@ const SideMenuContentComponent = (props: Props) => {

return (
<View style={style}>
<View style={{ flex: 1, opacity: props.opacity }}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

props.opacity seems to have always been undefined (not set).

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.

2 participants