Skip to content

Commit

Permalink
chore: remove unnecessary wrapper from NotificationButton (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy authored Mar 18, 2024
1 parent 7d39175 commit b17cf13
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions src/components/navigation/NotificationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,23 @@ type Props = {
mobileView?: boolean;
};

const Wrapper = styled.div`
margin: 0 -1rem;
`;

export function NotificationButton(props: Props) {
const components = useBosComponents();

return (
<Wrapper>
<VmComponent
src={components.nearOrg.notifications.button}
props={{
isLocalStorageSupported,
isNotificationSupported,
isPermisionGranted,
isPushManagerSupported,
handleOnCancel,
getNotificationLocalStorage,
handleOnCancelBanner,
handleTurnOn,
mobileView: props.mobileView ?? false,
}}
/>
</Wrapper>
<VmComponent
src={components.nearOrg.notifications.button}
props={{
isLocalStorageSupported,
isNotificationSupported,
isPermisionGranted,
isPushManagerSupported,
handleOnCancel,
getNotificationLocalStorage,
handleOnCancelBanner,
handleTurnOn,
mobileView: props.mobileView ?? false,
}}
/>
);
}

0 comments on commit b17cf13

Please sign in to comment.