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

LG-3814: MongoNav LiveExample + CodeDocs #333

Open
wants to merge 19 commits into
base: staging
Choose a base branch
from

Conversation

spark33
Copy link
Contributor

@spark33 spark33 commented Dec 5, 2023

No description provided.

.npmrc Outdated Show resolved Hide resolved
@TheSonOfThomp TheSonOfThomp self-requested a review January 9, 2024 16:36
package.json Outdated
@@ -88,6 +87,7 @@
"@leafygreen-ui/tokens": "^2.2.0",
"@leafygreen-ui/tooltip": "^11.0.0",
"@leafygreen-ui/typography": "^18.0.1",
"@lg-private/mongo-nav": "^13.1.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

bump

@@ -92,6 +92,7 @@ export const Knob = ({
value={value}
onChange={onChange}
className={cx(inputStyle, rest.className)}
popoverZIndex={999}
Copy link
Collaborator

Choose a reason for hiding this comment

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

🚩Do we need this?

Comment on lines 51 to 55
let namespace = '@leafygreen-ui';

if (PRIVATE_PACKAGES.includes(componentName)) {
namespace = '@lg-private';
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

const namespace = PRIVATE_PACKAGES.includes(componentName) ? '@lg-private' : '@leafygreen-ui'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wrote this this way since if we were to include lg-chat in the future, we'd want if / else if

Comment on lines 73 to 77
let namespace = '@leafygreen-ui';

if (PRIVATE_PACKAGES.includes(componentName)) {
namespace = '@lg-private';
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

same ternary here

Comment on lines 98 to 104
let namespace = '@leafygreen-ui';
if (typeof componentName !== 'string') return null;

if (PRIVATE_PACKAGES.includes(componentName)) {
namespace = '@lg-private';
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

ternary here as well

Comment on lines 17 to 22
let namespace = '@leafygreen-ui';

if (PRIVATE_PACKAGES.includes(kebabName)) {
namespace = '@lg-private';
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

ternary here too

Copy link
Collaborator

Choose a reason for hiding this comment

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

(could also create a getNamespaceFromPackageName function for future extensibility)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^I like that

Copy link
Collaborator

@TheSonOfThomp TheSonOfThomp left a comment

Choose a reason for hiding this comment

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

Left some comments

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