+ );
+ }
+}
+
+function mapStateToProps(state) {
+ return {
+ preferences: state.organization.preferences,
+ starredDashboards: state.organization.starredDashboards,
+ };
+}
+
+const mapDispatchToProps = {
+ setOrganizationHomeDashboard,
+ setOrganizationTimezone,
+ setOrganizationTheme,
+ updateOrganizationPreferences,
};
-export default OrgPreferences;
+export default connect(mapStateToProps, mapDispatchToProps)(OrgPreferences);
diff --git a/public/app/features/org/OrgProfile.test.tsx b/public/app/features/org/OrgProfile.test.tsx
new file mode 100644
index 00000000000..d101eded13e
--- /dev/null
+++ b/public/app/features/org/OrgProfile.test.tsx
@@ -0,0 +1,21 @@
+import React from 'react';
+import { shallow } from 'enzyme';
+import OrgProfile, { Props } from './OrgProfile';
+
+const setup = () => {
+ const props: Props = {
+ orgName: 'Main org',
+ onSubmit: jest.fn(),
+ onOrgNameChange: jest.fn(),
+ };
+
+ return shallow(