Skip to content

Commit b718e6b

Browse files
committed
feat: use toggle
1 parent 0144992 commit b718e6b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/pages/Modules/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/** @jsx jsx */
22
import { jsx } from '@emotion/core'
33
import React, { useCallback, useState } from 'react'
4-
import { RadioButton } from '@sumup/circuit-ui'
5-
import styled from '@emotion/styled/macro'
4+
import { Toggle } from '@sumup/circuit-ui'
65
import { useTranslation } from 'react-i18next'
76
import tw from 'twin.macro'
87
import useSWR, { mutate } from 'swr'
@@ -62,7 +61,11 @@ const Page: React.FC = () => {
6261
<div key={mod} tw="flex items-center justify-between p-3">
6362
<div tw="truncate leading-normal text-gray-700">{mod}</div>
6463
<div tw="flex items-center">
65-
<RadioButton
64+
<Toggle
65+
noMargin
66+
label=""
67+
labelChecked="on"
68+
labelUnchecked="off"
6669
disabled={isLoading}
6770
checked={isChecked(mod)}
6871
onChange={() => toggle(mod, !isChecked(mod))}

0 commit comments

Comments
 (0)