@unitedstatespowersquadrons/components 1.4.3 → 1.4.5-1
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/Admin/AdminLink.tsx +11 -2
- package/package.json +1 -1
package/Admin/AdminLink.tsx
CHANGED
|
@@ -79,6 +79,12 @@ const useStyles = createUseStyles({
|
|
|
79
79
|
paddingLeft: "0",
|
|
80
80
|
paddingRight: "0",
|
|
81
81
|
},
|
|
82
|
+
subMenuLink: {
|
|
83
|
+
color: "inherit",
|
|
84
|
+
cursor: "pointer",
|
|
85
|
+
flex: 1,
|
|
86
|
+
textDecoration: "none",
|
|
87
|
+
},
|
|
82
88
|
subMenuText: {
|
|
83
89
|
animation: "fadeIn 100ms",
|
|
84
90
|
fontSize: "1.5em",
|
|
@@ -96,7 +102,7 @@ interface Props extends FontAwesomeProps {
|
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
const AdminLink = (props: Props) => {
|
|
99
|
-
const { className, color, href, icon, mode, style, subMenu, title } = props;
|
|
105
|
+
const { className, color, fa, href, icon, mode, style, subMenu, title } = props;
|
|
100
106
|
const classes = useStyles();
|
|
101
107
|
|
|
102
108
|
const colorClassName = classes[color];
|
|
@@ -105,13 +111,16 @@ const AdminLink = (props: Props) => {
|
|
|
105
111
|
<AdminItem className={classNames(classes.item, classes.left, colorClassName)}>
|
|
106
112
|
<IconButton
|
|
107
113
|
className={classNames(classes.subMenuIcon, className)}
|
|
114
|
+
fa={fa}
|
|
108
115
|
href={href}
|
|
109
116
|
icon={icon}
|
|
110
117
|
mode={mode}
|
|
111
118
|
style={style}
|
|
112
119
|
title={title}
|
|
113
120
|
/>
|
|
114
|
-
<
|
|
121
|
+
<a className={classes.subMenuLink} href={href} title={title}>
|
|
122
|
+
<span className={classNames(classes.subMenuText, className)}>{subMenu}</span>
|
|
123
|
+
</a>
|
|
115
124
|
</AdminItem>
|
|
116
125
|
);
|
|
117
126
|
};
|