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

fix: pass theme option as url params #1097

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

DeepaPrasanna
Copy link
Contributor

fixes #791

Summary of changes: passed mode as the url param in the notion link and update the darkMode value in Notion doc

Screenshot 2024-10-17 190309
Screenshot 2024-10-17 190250

Copy link

vercel bot commented Oct 17, 2024

@DeepaPrasanna is attempting to deploy a commit to the mftsio Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added 🕹️ 150 points hacktoberfest revisit Currently not required but important in the future 🕹️ oss.gg labels Oct 17, 2024
@abhay-joshi007
Copy link

/assign

Copy link

oss-gg bot commented Oct 19, 2024

The /assign command can only be used on issues, not on pull requests.

Copy link
Owner

@mfts mfts left a comment

Choose a reason for hiding this comment

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

@DeepaPrasanna I think we have a misunderstanding.

The sender should add the ?theme=dark|light to the Notion URL when they are uploading it to Papermark.
From there we are extracting it and passing it into the NotionPage component.

The actual Papermark link does not change

@mfts
Copy link
Owner

mfts commented Oct 22, 2024

@DeepaPrasanna please have a look at my last comment

@DeepaPrasanna
Copy link
Contributor Author

I am really sorry for the delay. I will update within few hours.

@mfts
Copy link
Owner

mfts commented Oct 22, 2024

I am really sorry for the delay. I will update within few hours.

No rush. I know you are also busy with other things. But great to keep this PR moving along.

@DeepaPrasanna
Copy link
Contributor Author

DeepaPrasanna commented Oct 23, 2024

I am really sorry for the delay. I will update within few hours.

No rush. I know you are also busy with other things. But great to keep this PR moving along.

@mfts Thank you for your patience :) I have taken into account your reviews and updated the code.

Pls also refer to the screen recording showing the changes.

Also, I think this may require updating docs so that users may know to send the query params for dark mode while uploading.
https://www.loom.com/share/74ed5f801a8f476fa182eb0468ff1557?sid=3de9bb42-8b69-4fa0-940e-f1ae5dd9f6a4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🕹️] Support dark mode in Notion page view
3 participants