Skip to content

Instantly share code, notes, and snippets.

@n8rzz
Created October 17, 2021 16:29
Show Gist options
  • Save n8rzz/fe0fb94eaf716b5e3a7a0830ee3ce084 to your computer and use it in GitHub Desktop.
Save n8rzz/fe0fb94eaf716b5e3a7a0830ee3ce084 to your computer and use it in GitHub Desktop.
ui-experiement-in-action.tsx
<UiExperiments
a={
<UiMainButton_V1
classes={{ root: classes.button }}
minWidth={90}
testId={`${props.testId}_go-to-start-button`}
TouchRippleProps={{ classes: { ripple: classes.buttonRipple } }}
onClick={props.snapStartHandler}
>
{localizationStore.translate('ShaperPage:start')}
</UiMainButton_V1>
}
b={
<Box marginLeft={2}>
<UiButton
color={UiComponentColors.White}
testId={`${props.testId}_GoToStart-button`}
variant={UiButtonVariants.Ghost}
onClick={props.snapStartHandler}
>
{localizationStore.translate('ShaperPage:start')}
</UiButton>
</Box>
}
isExperimentActive={featureFlagsStore.flags.designRefreshButtons}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment