@scm-manager/ui-components 2.42.3-20230210-082613 → 2.42.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-manager/ui-components",
3
- "version": "2.42.3-20230210-082613",
3
+ "version": "2.42.3",
4
4
  "description": "UI Components for SCM-Manager and its plugins",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -20,15 +20,15 @@
20
20
  "update-storyshots": "jest --testPathPattern=\"storyshots.test.ts\" --collectCoverage=false -u"
21
21
  },
22
22
  "devDependencies": {
23
- "@scm-manager/ui-syntaxhighlighting": "2.42.3-20230210-082613",
24
- "@scm-manager/ui-shortcuts": "2.42.3-20230210-082613",
25
- "@scm-manager/ui-text": "2.42.3-20230210-082613",
23
+ "@scm-manager/ui-syntaxhighlighting": "2.42.3",
24
+ "@scm-manager/ui-shortcuts": "2.42.3",
25
+ "@scm-manager/ui-text": "2.42.3",
26
26
  "@scm-manager/babel-preset": "^2.13.1",
27
27
  "@scm-manager/eslint-config": "^2.17.0",
28
28
  "@scm-manager/jest-preset": "^2.13.0",
29
29
  "@scm-manager/prettier-config": "^2.10.1",
30
30
  "@scm-manager/tsconfig": "^2.13.0",
31
- "@scm-manager/ui-tests": "2.42.3-20230210-082613",
31
+ "@scm-manager/ui-tests": "2.42.3",
32
32
  "@storybook/addon-actions": "^6.4.20",
33
33
  "@storybook/addon-essentials": "^6.4.20",
34
34
  "@storybook/addon-interactions": "^6.4.20",
@@ -67,9 +67,9 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@headlessui/react": "^1.4.3",
70
- "@scm-manager/ui-api": "2.42.3-20230210-082613",
71
- "@scm-manager/ui-extensions": "2.42.3-20230210-082613",
72
- "@scm-manager/ui-types": "2.42.3-20230210-082613",
70
+ "@scm-manager/ui-api": "2.42.3",
71
+ "@scm-manager/ui-extensions": "2.42.3",
72
+ "@scm-manager/ui-types": "2.42.3",
73
73
  "classnames": "^2.2.6",
74
74
  "date-fns": "^2.4.1",
75
75
  "deepmerge": "^4.2.2",
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React, { FC } from "react";
24
+ import React from "react";
25
25
  import classNames from "classnames";
26
26
 
27
27
  type Props = {
@@ -29,13 +29,16 @@ type Props = {
29
29
  className?: string;
30
30
  };
31
31
 
32
- const Subtitle: FC<Props> = ({ subtitle, className, children }) => {
33
- if (subtitle) {
34
- return <h2 className={classNames("subtitle", className)}>{subtitle}</h2>;
35
- } else if (children) {
36
- return <h2 className={classNames("subtitle", className)}>{children}</h2>;
32
+ class Subtitle extends React.Component<Props> {
33
+ render() {
34
+ const { subtitle, className, children } = this.props;
35
+ if (subtitle) {
36
+ return <h2 className={classNames("subtitle", className)}>{subtitle}</h2>;
37
+ } else if (children) {
38
+ return <h2 className={classNames("subtitle", className)}>{children}</h2>;
39
+ }
40
+ return null;
37
41
  }
38
- return null;
39
- };
42
+ }
40
43
 
41
44
  export default Subtitle;