mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 12:20:15 +08:00
feat: add dark theme support
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as React from "react";
|
||||
|
||||
import styles from "./button.module.css";
|
||||
import styles from "./button.module.scss";
|
||||
|
||||
export function IconButton(props: {
|
||||
onClick?: () => void;
|
||||
@@ -8,6 +8,7 @@ export function IconButton(props: {
|
||||
text?: string;
|
||||
bordered?: boolean;
|
||||
className?: string;
|
||||
title?: string;
|
||||
}) {
|
||||
return (
|
||||
<div
|
||||
@@ -16,6 +17,7 @@ export function IconButton(props: {
|
||||
` ${props.bordered && styles.border} ${props.className ?? ""}`
|
||||
}
|
||||
onClick={props.onClick}
|
||||
title={props.title}
|
||||
>
|
||||
<div className={styles["icon-button-icon"]}>{props.icon}</div>
|
||||
{props.text && (
|
||||
|
Reference in New Issue
Block a user