mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
797a15c56e
commit
e1d49d164b
6 files changed
+32
-15
No files matched your search
@@ -6,7 +6,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
|||||||
import navigateToPortForwardsInjectable from "../../common/front-end-routing/routes/cluster/network/port-forwards/navigate-to-port-forwards.injectable";
|
import navigateToPortForwardsInjectable from "../../common/front-end-routing/routes/cluster/network/port-forwards/navigate-to-port-forwards.injectable";
|
||||||
import showErrorNotificationInjectable from "../components/notifications/show-error-notification.injectable";
|
import showErrorNotificationInjectable from "../components/notifications/show-error-notification.injectable";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { Button } from from "@k8slens/button";
|
import { Button } from "@k8slens/button";
|
||||||
|
|
||||||
const notifyErrorPortForwardingInjectable = getInjectable({
|
const notifyErrorPortForwardingInjectable = getInjectable({
|
||||||
id: "notify-error-port-forwarding",
|
id: "notify-error-port-forwarding",
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./src/button";
|
export * from "./src/button";
|
||||||
@@ -27,14 +27,35 @@ export interface ButtonProps extends ButtonHTMLAttributes<any> {
|
|||||||
|
|
||||||
export const Button = withTooltip((props: ButtonProps) => {
|
export const Button = withTooltip((props: ButtonProps) => {
|
||||||
const {
|
const {
|
||||||
waiting, label, primary, accent, plain, hidden, active, big,
|
waiting,
|
||||||
round, outlined, light, children, ...btnProps
|
label,
|
||||||
|
primary,
|
||||||
|
accent,
|
||||||
|
plain,
|
||||||
|
hidden,
|
||||||
|
active,
|
||||||
|
big,
|
||||||
|
round,
|
||||||
|
outlined,
|
||||||
|
light,
|
||||||
|
children,
|
||||||
|
...btnProps
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
if (hidden) return null;
|
if (hidden) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
btnProps.className = cssNames("Button", btnProps.className, {
|
btnProps.className = cssNames("Button", btnProps.className, {
|
||||||
waiting, primary, accent, plain, active, big, round, outlined, light,
|
waiting,
|
||||||
|
primary,
|
||||||
|
accent,
|
||||||
|
plain,
|
||||||
|
active,
|
||||||
|
big,
|
||||||
|
round,
|
||||||
|
outlined,
|
||||||
|
light,
|
||||||
});
|
});
|
||||||
|
|
||||||
// render as link
|
// render as link
|
||||||
|
|||||||
@@ -3,12 +3,10 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const path = require('path');
|
const path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: [path.join(__dirname, "src/**/*.tsx")],
|
||||||
path.join(__dirname, "src/**/*.tsx")
|
|
||||||
],
|
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
theme: {
|
theme: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
export * from "./src/tooltip";
|
export * from "./src/tooltip";
|
||||||
export * from "./src/withTooltip";
|
export * from "./src/withTooltip";
|
||||||
@@ -3,12 +3,10 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const path = require('path');
|
const path = require("path");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: [path.join(__dirname, "src/**/*.tsx")],
|
||||||
path.join(__dirname, "src/**/*.tsx")
|
|
||||||
],
|
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
theme: {
|
theme: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
|
|||||||
Reference in new issue
Block a user