mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
Fix typo
This commit is contained in:
parent
eff494db86
commit
14fbd35642
@ -1,14 +1,14 @@
|
||||
import { PropSummaryValue } from '@storybook/components';
|
||||
|
||||
export const MAX_TYPE_SUMMARY_LENGTH = 90;
|
||||
export const MAX_DEFALUT_VALUE_SUMMARY_LENGTH = 50;
|
||||
export const MAX_DEFAULT_VALUE_SUMMARY_LENGTH = 50;
|
||||
|
||||
export function isTooLongForTypeSummary(value: string): boolean {
|
||||
return value.length > MAX_TYPE_SUMMARY_LENGTH;
|
||||
}
|
||||
|
||||
export function isTooLongForDefaultValueSummary(value: string): boolean {
|
||||
return value.length > MAX_DEFALUT_VALUE_SUMMARY_LENGTH;
|
||||
return value.length > MAX_DEFAULT_VALUE_SUMMARY_LENGTH;
|
||||
}
|
||||
|
||||
export function createSummaryValue(summary: string, detail?: string): PropSummaryValue {
|
||||
|
Loading…
x
Reference in New Issue
Block a user