Skip to content

Commit

Permalink
chore:eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyankhuuTsCAl committed Oct 30, 2023
1 parent 187adb2 commit 1606cea
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 24 deletions.
3 changes: 1 addition & 2 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import { useState } from 'react';

import LoginForm from '../../components/LoginForm';

import Image from 'next/image';
import LoginForm from '../../components/LoginForm';

import {
GlobalStyle,
Expand Down
23 changes: 6 additions & 17 deletions src/app/profileScreen/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
'use client';

import { useRouter } from 'next/navigation';
import { toast } from 'react-toastify';
import NavBar from '../../components/NavBar';

import { LogOutButton, GlobalStyle, PopUp } from './style';

import { signOut } from '../../api/supabase/auth/auth';

import NavBar from '../../components/NavBar';

import { ToastContainer, toast } from 'react-toastify';

import 'react-toastify/dist/ReactToastify.css';

import { useRouter } from 'next/navigation';

import Footer from '../../components/Footer';

export default function Profile() {
Expand All @@ -26,22 +24,13 @@ export default function Profile() {
router.push('/login');
}, 3000);
};
const CloseButton = ({ closeToast }) => (
<i className="material-icons" onClick={closeToast}>
OK
</i>
);

return (
<main>
<NavBar />
<GlobalStyle />
<LogOutButton onClick={() => showToastMessage()}>Log Out!</LogOutButton>
<PopUp
closeButton={false}
autoClose={3000}
hideProgressBar={true}
limit={1}
/>
<PopUp closeButton={false} autoClose={3000} hideProgressBar limit={1} />
<Footer />
</main>
);
Expand Down
4 changes: 2 additions & 2 deletions src/app/profileScreen/style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import styled, { createGlobalStyle } from 'styled-components';

import { ToastContainer } from 'react-toastify';

export const GlobalStyle = createGlobalStyle`
body {
background:white;
Expand All @@ -21,8 +23,6 @@ export const LogOutButton = styled.button`
height: 50px;
`;

import { ToastContainer } from 'react-toastify';

export const PopUp = styled(ToastContainer)`
transform: translate(-150px, 250px);
`;
1 change: 1 addition & 0 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Location from './Location';

import { FooterDiv, ContactDiv } from '../styles/components';

export default function Logo() {
return (
<main>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Location.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { LocationDiv, Addie } from '../styles/components';

export default function Logo(props: {
District: String;
Address: String;
Phone: String;
District: string;
Address: string;
Phone: string;
}) {
const { District, Address, Phone } = props;

Expand Down

0 comments on commit 1606cea

Please sign in to comment.