Skip to content

Commit

Permalink
refactor: don't unnecessarily alias initialFullscreen prop
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpyon committed May 10, 2024
1 parent 00032c4 commit 7c74934
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function PortableTextInput(props: PortableTextInputProps): ReactNode {
editorRef: editorRefProp,
elementProps,
hotkeys,
initialFullscreen: initialFullscreenProp,
initialFullscreen,
markers = EMPTY_ARRAY,
onChange,
onCopy,
Expand Down Expand Up @@ -119,7 +119,7 @@ export function PortableTextInput(props: PortableTextInputProps): ReactNode {
const {t} = useTranslation()
const [ignoreValidationError, setIgnoreValidationError] = useState(false)
const [invalidValue, setInvalidValue] = useState<InvalidValue | null>(null)
const [isFullscreen, setIsFullscreen] = useState(initialFullscreenProp ?? false)
const [isFullscreen, setIsFullscreen] = useState(initialFullscreen ?? false)
const [isActive, setIsActive] = useState(false)
const [isOffline, setIsOffline] = useState(false)
const [hasFocusWithin, setHasFocusWithin] = useState(false)
Expand Down

0 comments on commit 7c74934

Please sign in to comment.