Skip to content

Commit 312865f

Browse files
committed
Fix missing createStyles export
Fixes stepper docs
1 parent 8f6049f commit 312865f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/styles/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export { createStyles } from '@material-ui/styles'
12
// Override material exports as required to reflect committed theme
23
export { useWidth } from './useWidth'
34
import { ConsistentWith, Omit } from '@material-ui/types'

stories/components/stepper/StepperDocs.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ import {
77
StepLabel,
88
Button,
99
Typography,
10-
StepperProps,
11-
StepLabelProps,
12-
StepProps,
13-
Theme,
1410
} from '../../../src'
1511

16-
const useStyles = makeStyles((theme: Theme) =>
12+
const useStyles = makeStyles((theme) =>
1713
createStyles({
1814
root: {
1915
width: '100%',
@@ -29,15 +25,15 @@ const useStyles = makeStyles((theme: Theme) =>
2925
)
3026

3127
function getSteps() {
32-
return ['Select campaign settings', 'Create an ad group', 'Create an ad']
28+
return ['Select settings', 'Create a group', 'Create the thing']
3329
}
3430

3531
function getStepContent(step: number) {
3632
switch (step) {
3733
case 0:
38-
return 'Select campaign settings...'
34+
return 'Select settings...'
3935
case 1:
40-
return 'What is an ad group anyways?'
36+
return "Don't bother with this?"
4137
case 2:
4238
return 'This is the bit I really care about!'
4339
default:

0 commit comments

Comments
 (0)