Skip to content

Commit

Permalink
fix passing accent color to AdvancedModeSubsettingsContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-corson-ibigroup committed Jun 19, 2024
1 parent ac1020e commit 35b0062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/components/form/advanced-settings-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ const Subheader = styled.h2`
font-weight: 700;
margin: 1em 0;
`
const baseColor = getBaseColor() !== 'fff' ? getBaseColor() : blue[900]
const baseColor = getBaseColor()
const accentColor = baseColor || blue[900]

const AdvancedSettingsPanel = ({
closeAdvancedSettings,
Expand Down Expand Up @@ -148,7 +149,7 @@ const AdvancedSettingsPanel = ({
* AdvancedModeSubsettingsContainer (import from Otp-ui) goes here
*/}
<AdvancedModeSubsettingsContainer
accentColor={baseColor}
accentColor={accentColor}
fillModeIcons
label="test"
modeButtons={processedModeButtons}
Expand Down

0 comments on commit 35b0062

Please sign in to comment.