2
0

feat(editor): Payment input

This commit is contained in:
Baptiste Arnaud
2022-05-24 14:25:15 -07:00
parent 91ea637a08
commit 3a6ca3dbde
35 changed files with 1516 additions and 52 deletions

View File

@ -1,13 +1,6 @@
import {
chakra,
FormLabel,
HStack,
Switch,
SwitchProps,
Tooltip,
} from '@chakra-ui/react'
import { HelpCircleIcon } from 'assets/icons'
import { FormLabel, HStack, Switch, SwitchProps } from '@chakra-ui/react'
import React, { useState } from 'react'
import { MoreInfoTooltip } from './MoreInfoTooltip'
type SwitchWithLabelProps = {
id: string
@ -38,11 +31,7 @@ export const SwitchWithLabel = ({
{label}
</FormLabel>
{moreInfoContent && (
<Tooltip label={moreInfoContent}>
<chakra.span cursor="pointer">
<HelpCircleIcon />
</chakra.span>
</Tooltip>
<MoreInfoTooltip>{moreInfoContent}</MoreInfoTooltip>
)}
</HStack>
<Switch