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

Connection config: import assumeRoleInstructionsStyle instead of passing it as prop #76

Merged
merged 3 commits into from
Feb 12, 2024

Conversation

idastambuk
Copy link
Contributor

Just fixing some absolutely wild code I added a while ago

@idastambuk idastambuk requested a review from a team as a code owner February 9, 2024 11:10
@idastambuk idastambuk requested review from sarahzinger and kevinwcyu and removed request for a team February 9, 2024 11:10
@@ -19,7 +19,6 @@ interface NewConnectionConfigProps extends ConnectionConfigProps {
setIsARNInstructionsOpen: (isOpen: boolean) => void;
awsAssumeRoleEnabled: boolean;
regions: SelectableValue[];
assumeRoleInstructionsStyle: string;
Copy link
Member

Choose a reason for hiding this comment

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

💯

@@ -305,10 +303,7 @@ export const ConnectionConfig: FC<ConnectionConfigProps> = (props: ConnectionCon
);
};

function getStyles() {
Copy link
Member

Choose a reason for hiding this comment

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

I don't really mind this style imo. It makes it ever so slightly easier to add other styles later. Or if you ever want to reference a theme or something you can.

That said i agree it doesn't need to go through the useStyles2 hook.

That said how you have it is also fine by me!

@idastambuk idastambuk merged commit 619ea43 into main Feb 12, 2024
3 checks passed
@idastambuk idastambuk deleted the css-fix branch February 12, 2024 11:26
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.

None yet

2 participants