@ebubekirylmaz/link-test 1.2.52 → 1.2.54
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
|
@@ -2,7 +2,6 @@ import Box from "@mui/material/Box";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { StyledLabel } from "./styles";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { useTheme } from "@mui/material/styles";
|
|
6
5
|
|
|
7
6
|
const Label = forwardRef(
|
|
8
7
|
(
|
|
@@ -17,8 +16,6 @@ const Label = forwardRef(
|
|
|
17
16
|
},
|
|
18
17
|
ref
|
|
19
18
|
) => {
|
|
20
|
-
const theme = useTheme();
|
|
21
|
-
|
|
22
19
|
const iconStyles = {
|
|
23
20
|
width: 16,
|
|
24
21
|
height: 16,
|
|
@@ -35,7 +32,6 @@ const Label = forwardRef(
|
|
|
35
32
|
...(endIcon && { pr: 0.75 }),
|
|
36
33
|
...sx,
|
|
37
34
|
}}
|
|
38
|
-
theme={theme}
|
|
39
35
|
{...other}
|
|
40
36
|
>
|
|
41
37
|
{startIcon && <Box sx={{ mr: 0.75, ...iconStyles }}> {startIcon} </Box>}
|
package/src/lib/Label/Label.jsx
CHANGED
|
@@ -2,7 +2,6 @@ import Box from "@mui/material/Box";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { StyledLabel } from "./styles";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
|
-
import { useTheme } from "@mui/material/styles";
|
|
6
5
|
|
|
7
6
|
const Label = forwardRef(
|
|
8
7
|
(
|
|
@@ -17,8 +16,6 @@ const Label = forwardRef(
|
|
|
17
16
|
},
|
|
18
17
|
ref
|
|
19
18
|
) => {
|
|
20
|
-
const theme = useTheme();
|
|
21
|
-
|
|
22
19
|
const iconStyles = {
|
|
23
20
|
width: 16,
|
|
24
21
|
height: 16,
|
|
@@ -35,7 +32,6 @@ const Label = forwardRef(
|
|
|
35
32
|
...(endIcon && { pr: 0.75 }),
|
|
36
33
|
...sx,
|
|
37
34
|
}}
|
|
38
|
-
theme={theme}
|
|
39
35
|
{...other}
|
|
40
36
|
>
|
|
41
37
|
{startIcon && <Box sx={{ mr: 0.75, ...iconStyles }}> {startIcon} </Box>}
|