Skip to content

Commit c59cc54

Browse files
chore: maia thinking time more clear
1 parent 555a92d commit c59cc54

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/components/Common/PlaySetupModal.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ interface OptionSelectProps<T> {
3939
labels: string[]
4040
selected: T
4141
onChange: (selected: T) => void
42+
selectedClassName?: string
43+
unselectedClassName?: string
4244
}
4345

4446
function OptionSelect<T>({
4547
options,
4648
labels,
4749
selected,
4850
onChange,
51+
selectedClassName = 'border border-glass-border bg-glass-stronger text-white',
52+
unselectedClassName = 'border border-glass-border bg-glass text-white/90 hover:bg-glass-stronger',
4953
}: OptionSelectProps<T>) {
5054
return (
5155
<div className="flex overflow-hidden rounded-lg">
@@ -55,8 +59,8 @@ function OptionSelect<T>({
5559
key={index}
5660
className={`flex-1 px-4 py-2 text-sm font-medium transition-colors ${
5761
option === selected
58-
? 'border border-glass-border bg-glass-stronger text-white'
59-
: 'border border-glass-border bg-glass text-white/90 hover:bg-glass-stronger'
62+
? selectedClassName
63+
: unselectedClassName
6064
} ${index === 0 ? 'rounded-l-lg' : ''} ${
6165
index === options.length - 1 ? 'rounded-r-lg' : ''
6266
}`}
@@ -403,6 +407,7 @@ export const PlaySetupModal: React.FC<Props> = (props: Props) => {
403407
labels={['Instant', 'Human-like']}
404408
selected={simulateMaiaTime}
405409
onChange={setSimulateMaiaTime}
410+
selectedClassName="border-human-4 bg-human-4 text-white hover:bg-human-4/90"
406411
/>
407412
</div>
408413
</div>

src/components/Play/HandBrainPlayControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
187187
<button
188188
className={`flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
189189
!simulateMaiaTime
190-
? 'bg-glass-stronger text-white'
190+
? 'bg-human-4 text-white hover:bg-human-4/90'
191191
: 'text-white/70 hover:bg-glass-strong hover:text-white'
192192
}`}
193193
onClick={() => setSimulateMaiaTime(false)}
@@ -197,7 +197,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
197197
<button
198198
className={`flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
199199
simulateMaiaTime
200-
? 'bg-glass-stronger text-white'
200+
? 'bg-human-4 text-white hover:bg-human-4/90'
201201
: 'text-white/70 hover:bg-glass-strong hover:text-white'
202202
}`}
203203
onClick={() => setSimulateMaiaTime(true)}

src/components/Play/PlayControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const PlayControls: React.FC<Props> = ({
8181
<button
8282
className={`flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
8383
!simulateMaiaTime
84-
? 'bg-glass-stronger text-white'
84+
? 'bg-human-4 text-white hover:bg-human-4/90'
8585
: 'text-white/70 hover:bg-glass-strong hover:text-white'
8686
}`}
8787
onClick={() => setSimulateMaiaTime(false)}
@@ -91,7 +91,7 @@ export const PlayControls: React.FC<Props> = ({
9191
<button
9292
className={`flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
9393
simulateMaiaTime
94-
? 'bg-glass-stronger text-white'
94+
? 'bg-human-4 text-white hover:bg-human-4/90'
9595
: 'text-white/70 hover:bg-glass-strong hover:text-white'
9696
}`}
9797
onClick={() => setSimulateMaiaTime(true)}

0 commit comments

Comments
 (0)