Skip to content

Commit

Permalink
chore: rename argument
Browse files Browse the repository at this point in the history
  • Loading branch information
christjt committed Sep 7, 2023
1 parent ea5db0b commit ddf735c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ const RevealToolbarContainer = ({
lowFidelitySettings,
highFidelitySettings,
toolBarContent,
...rest
...restProps
}: RevealToolbarProps & { toolBarContent?: JSX.Element }): ReactElement => {
if (rest.className === undefined && rest.style === undefined) {
rest = { ...rest, ...defaultStyle };
if (restProps.className === undefined && restProps.style === undefined) {
restProps = { ...restProps, ...defaultStyle };
}
return (
<I18nWrapper translations={translations} addNamespace="reveal-react-components">
<ToolBar {...rest}>
<ToolBar {...restProps}>
{toolBarContent ?? (
<DefaultContentWrapper
customSettingsContent={customSettingsContent}
Expand Down

0 comments on commit ddf735c

Please sign in to comment.