Skip to content

Commit c6f6cd9

Browse files
committed
fix
1 parent 6c50182 commit c6f6cd9

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

src/components/Ui/Infobox/Infobox.module.css

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
1-
.wrapper {
2-
width: 100%;
3-
background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8), rgba(0, 0, 2055, 0.2)) border-box;
4-
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
5-
box-sizing: border-box;
6-
padding: 2px;
7-
margin-bottom: 2rem;
8-
border-radius: 15px;
9-
}
10-
11-
.wrapper.dark-mode {
12-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2))
13-
border-box;
14-
}
15-
161
.infobox {
17-
padding: 3px;
182
display: flex;
193
align-items: center;
204
border-radius: 12px;
215
padding: 1rem;
226
margin: 0;
237
overflow: hidden;
8+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
9+
margin-bottom: 2rem;
10+
border-radius: 15px;
2411
}
2512

2613
.icon {

src/components/Ui/Infobox/Infobox.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const Infobox: React.FC<LabelProps> = ({
3131
className,
3232
icon,
3333
}) => {
34-
const { isDarkTheme } = useTheme();
3534
const infoboxClasses = cx(
3635
styles.infobox,
3736
{
@@ -50,11 +49,9 @@ export const Infobox: React.FC<LabelProps> = ({
5049
const iconName = icon || variantIcons[variant];
5150

5251
return (
53-
<div className={cx(styles['wrapper'], { [styles['dark-mode']]: isDarkTheme })}>
54-
<div className={infoboxClasses} id={id}>
55-
{iconName && <Icon name={iconName} className={styles.icon} />}
56-
<div className={styles.content}>{children}</div>
57-
</div>
52+
<div className={infoboxClasses} id={id}>
53+
{iconName && <Icon name={iconName} className={styles.icon} />}
54+
<div className={styles.content}>{children}</div>
5855
</div>
5956
);
6057
};

0 commit comments

Comments
 (0)