Skip to content

Commit

Permalink
feat: make title in new wizard to header
Browse files Browse the repository at this point in the history
  • Loading branch information
akhmyrov committed Nov 14, 2022
1 parent 1d327cb commit 9e81c50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bestdoctor/ke-beta",
"version": "13.2.5",
"version": "13.2.6",
"description": "BestDoctor back-office UI constructor",
"author": "pro100filipp",
"main": "dist/index.js",
Expand Down
7 changes: 5 additions & 2 deletions src/Wizard/Wizard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box } from '@chakra-ui/react'
import { Box, Text } from '@chakra-ui/react'
import React, { useCallback, useState } from 'react'

import { usePropState } from '@cdk/Hooks'
Expand Down Expand Up @@ -48,7 +48,10 @@ export const Wizard = <Key extends string, Action extends string, StepData exten

return (
<Box>
{name}
<Text as="h2" key="header" fontSize="3xl" color="black" fontWeight="medium" lineHeight="9">
{name}
</Text>

<FormElement data={currentData} next={next} restart={restart} finish={finish} onChange={onChange} />
</Box>
)
Expand Down

0 comments on commit 9e81c50

Please sign in to comment.