Skip to content

Commit 9e95fda

Browse files
committed
Remove clsx
1 parent d2a6182 commit 9e95fda

5 files changed

Lines changed: 7 additions & 18 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
"@emotion/react": "^11.14.0",
7272
"@emotion/styled": "^11.14.1",
7373
"@mui/icons-material": "^7.3.5",
74-
"@mui/material": "^7.3.5",
75-
"clsx": "^2.1.1"
74+
"@mui/material": "^7.3.5"
7675
},
7776
"devDependencies": {
7877
"@testing-library/jest-dom": "^6.6.3",

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simulations/chatgpt/main.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ function AppContent({ selectedUI }: { selectedUI: UISimulation }) {
9999
return (
100100
<Carousel>
101101
{places.map((place) => (
102-
<div key={place.id} className="sp-carousel-item">
103-
<Card
102+
<Card
103+
key={place.id}
104104
id={place.id}
105105
image={place.image}
106106
imageAlt={place.name}
@@ -114,10 +114,9 @@ function AppContent({ selectedUI }: { selectedUI: UISimulation }) {
114114
onClick: () => console.log(`Learn more about ${place.name}`),
115115
isPrimary: true,
116116
}}
117-
>
118-
{place.description}
119-
</Card>
120-
</div>
117+
>
118+
{place.description}
119+
</Card>
121120
))}
122121
</Carousel>
123122
);

src/components/Card/Card.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { type ReactNode, type HTMLAttributes } from 'react';
2-
import { clsx } from 'clsx';
32
import { Button, type ButtonProps as MuiButtonProps, Box, useTheme } from '@mui/material';
43
import { useRequestDisplayMode, useDisplayMode, useMaxHeight, useWidgetState } from '../../hooks';
54
import type { GenAIProps } from '../GenAI';
@@ -135,11 +134,6 @@ export const Card = ({
135134
{...muiProps}
136135
variant={isPrimary ? 'contained' : 'outlined'}
137136
onClick={handleClick}
138-
className={clsx(
139-
'sp-button',
140-
isPrimary ? 'sp-button-primary' : 'sp-button-secondary',
141-
muiProps.className
142-
)}
143137
>
144138
{children}
145139
</Button>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default defineConfig({
154154
],
155155
publicDir: 'assets',
156156
server: {
157-
port: 6742,
157+
port: 6768,
158158
strictPort: true,
159159
},
160160
resolve: {

0 commit comments

Comments
 (0)