Skip to content

Drop emoji-regex require #379

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

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Drop emoji-regex require #379

merged 1 commit into from
Jan 3, 2023

Conversation

zampino
Copy link
Collaborator

@zampino zampino commented Jan 2, 2023

Closes #373.

emoji (when (zero? (.search label emoji-re))
(first (.match label emoji-re)))]
(fn [i {:keys [emoji path title expanded? loading? items toc]}]
(let [label (or title (str/capitalize (last (str/split path #"/"))))]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems to me that we never call navbar-items at runtime in the current usage of navbar in Clerk. @joe-loco could you have a look? We're passing a :toc to the navbar state and not :items.

Copy link
Member

Choose a reason for hiding this comment

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

I discussed this with @mk in Berlin. I initially wanted to drop all code that was not relevant to :toc but @mk wanted to keep it in for when Clerk is able to show hierarchies that are above notebooks.

Copy link
Member

Choose a reason for hiding this comment

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

Can discuss further when I’m back tmw if you want.

@mk mk changed the title Drop emoji-regex requirement Drop emoji-regex require Jan 3, 2023
@mk mk marked this pull request as ready for review January 3, 2023 14:39
@mk mk merged commit 8ed0c35 into main Jan 3, 2023
@mk mk deleted the emoji-navbar branch January 3, 2023 14:40
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