Skip to content

Commit

Permalink
fix(btn): use different growthbook api (#7299)
Browse files Browse the repository at this point in the history
use different growthbook api
  • Loading branch information
KenLSM authored Apr 30, 2024
1 parent 70a0dfa commit 435f915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
Stack,
useDisclosure,
} from '@chakra-ui/react'
import { useFeatureValue } from '@growthbook/growthbook-react'
import { useToggle } from 'rooks'

import { featureFlags } from '~shared/constants'
Expand All @@ -26,7 +27,6 @@ import IconButton from '~components/IconButton'
import Input, { InputProps } from '~components/Input'

import { useAdminForm } from '~features/admin-form/common/queries'
import { useIsFeatureEnabled } from '~features/feature-flags/queries'

import { useMutateTwilioCreds } from '../../mutations'

Expand Down Expand Up @@ -68,7 +68,7 @@ export const TwilioDetailsInputs = (): JSX.Element => {

const [isApiSecretShown, toggleIsApiSecretShown] = useToggle(false)

const isAddingTwilioDisabled = useIsFeatureEnabled(
const isAddingTwilioDisabled = useFeatureValue(
featureFlags.addingTwilioDisabled,
false,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { ListItem, Text, UnorderedList } from '@chakra-ui/react'
import { useFeatureValue } from '@growthbook/growthbook-react'

import { featureFlags } from '~shared/constants'

import InlineMessage from '~components/InlineMessage'

import { useIsFeatureEnabled } from '~features/feature-flags/queries'

import { TwilioDetailsInputs } from './TwilioDetailsInputs'

export const TwilioSettingsSection = (): JSX.Element => {
const isAddingTwilioDisabled = useIsFeatureEnabled(
const isAddingTwilioDisabled = useFeatureValue(
featureFlags.addingTwilioDisabled,
false,
)
Expand Down

0 comments on commit 435f915

Please sign in to comment.