-
Notifications
You must be signed in to change notification settings - Fork 179
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
Dashboard: Settings view context foundation (Publisher Logos) #3085
Dashboard: Settings view context foundation (Publisher Logos) #3085
Conversation
function PublisherLogoSettings() { | ||
|
||
// eslint-disable-next-line no-unused-vars | ||
function PublisherLogoSettings({ onUpdatePublisherLogo, publisherLogos }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will use these once OK to connect to fileUpload component. Wanted to pass them through to set up propTypes here.
Codecov Report
@@ Coverage Diff @@
## master #3085 +/- ##
=======================================
Coverage 81.99% 82.00%
=======================================
Files 716 716
Lines 12049 12050 +1
=======================================
+ Hits 9880 9881 +1
Misses 2169 2169
|
Size Change: +15 B (0%) Total Size: 1 MB
ℹ️ View Unchanged
|
return ( | ||
<PublisherLogoSettings | ||
onUpdatePublisherLogo={(e) => { | ||
e.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we need to preventDefault
for all usages of this logo? If so we could just bubble this up and then wrap the callback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nah this is just because there's nothing there yet since the fileUpload is separate and i hate it when storybook clicks send you out of the existing view.
Summary
We don't have access to an API for this yet, just laying ground work for connecting UI to API via context.
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
useSettingsApi
.Addresses #2747