Skip to content

Commit 2e8e80e

Browse files
committed
refactor: refactor Notifications to SendMeNotifications to avoid component name collision
1 parent 20e1a97 commit 2e8e80e

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

web/src/layout/Header/navbar/Menu/Settings/Notifications/FormNotifs/FormEmail.tsx renamed to web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/FormNotifs/FormEmail.tsx

File renamed without changes.

web/src/layout/Header/navbar/Menu/Settings/Notifications/FormNotifs/index.tsx renamed to web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/FormNotifs/index.tsx

File renamed without changes.

web/src/layout/Header/navbar/Menu/Settings/Notifications/HeaderNotifs.tsx renamed to web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/HeaderNotifs.tsx

File renamed without changes.

web/src/layout/Header/navbar/Menu/Settings/Notifications/index.tsx renamed to web/src/layout/Header/navbar/Menu/Settings/SendMeNotifications/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Container = styled.div`
88
flex-direction: column;
99
`;
1010

11-
const Notifications: React.FC = () => {
11+
const SendMeNotifications: React.FC = () => {
1212
return (
1313
<Container>
1414
<HeaderNotifs />
@@ -17,4 +17,4 @@ const Notifications: React.FC = () => {
1717
);
1818
};
1919

20-
export default Notifications;
20+
export default SendMeNotifications;

web/src/layout/Header/navbar/Menu/Settings/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Dispatch, SetStateAction, useRef, useState } from "react";
22
import styled from "styled-components";
33
import { Tabs } from "@kleros/ui-components-library";
44
import General from "./General";
5-
import Notifications from "./Notifications";
5+
import SendMeNotifications from "./SendMeNotifications";
66
import { useFocusOutside } from "hooks/useFocusOutside";
77

88
const tabsItems = [
@@ -35,7 +35,7 @@ const Settings: React.FC<ISettings> = ({ setIsSettingsOpen }) => {
3535
setCurrentTab(n);
3636
}}
3737
/>
38-
{currentTab === 0 ? <General /> : <Notifications />}
38+
{currentTab === 0 ? <General /> : <SendMeNotifications />}
3939
</Container>
4040
);
4141
};

0 commit comments

Comments
 (0)