Skip to content

Commit 2126efc

Browse files
committed
refactor: notification form filenames
1 parent 889cef7 commit 2126efc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

File renamed without changes.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const FormContactContainer = styled.div`
2525
margin-bottom: 24px;
2626
`;
2727

28-
const FormNotifs: React.FC = () => {
28+
const FormContactDetails: React.FC = () => {
2929
const [telegramInput, setTelegramInput] = useState<string>("");
3030
const [emailInput, setEmailInput] = useState<string>("");
3131
const [telegramIsValid, setTelegramIsValid] = useState<boolean>(false);
@@ -88,4 +88,4 @@ const FormNotifs: React.FC = () => {
8888
);
8989
};
9090

91-
export default FormNotifs;
91+
export default FormContactDetails;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import styled from "styled-components";
33

4-
import FormNotifs from "./FormNotifs";
4+
import FormContactDetails from "./FormContactDetails";
55
import { EnsureChain } from "components/EnsureChain";
66

77
const Container = styled.div`
@@ -32,17 +32,17 @@ const EnsureChainContainer = styled.div`
3232
padding-bottom: 16px;
3333
`;
3434

35-
const SendMeNotifications: React.FC = () => {
35+
const NotificationSettings: React.FC = () => {
3636
return (
3737
<EnsureChainContainer>
3838
<EnsureChain>
3939
<Container>
4040
<HeaderNotifs />
41-
<FormNotifs />
41+
<FormContactDetails />
4242
</Container>
4343
</EnsureChain>
4444
</EnsureChainContainer>
4545
);
4646
};
4747

48-
export default SendMeNotifications;
48+
export default NotificationSettings;

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 SendMeNotifications from "./SendMeNotifications";
5+
import NotificationSettings from "./Notifications";
66
import { useFocusOutside } from "hooks/useFocusOutside";
77
import { Overlay } from "components/Overlay";
88

@@ -65,7 +65,7 @@ const Settings: React.FC<ISettings> = ({ setIsSettingsOpen }) => {
6565
setCurrentTab(n);
6666
}}
6767
/>
68-
{currentTab === 0 ? <General /> : <SendMeNotifications />}
68+
{currentTab === 0 ? <General /> : <NotificationSettings />}
6969
</Container>
7070
</>
7171
);

0 commit comments

Comments
 (0)