Skip to content

Commit 7abefac

Browse files
committed
refactor: Remove unused code
1 parent b5bfc32 commit 7abefac

File tree

18 files changed

+9
-209
lines changed

18 files changed

+9
-209
lines changed

src/components/footer/Footer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { makeStyles, Theme, Typography, useMediaQuery } from "@material-ui/core"
33
import Spacing from "@components/spacing"
44
import { Image } from "@components/image"
55
import { Grid } from "@material-ui/core"
6-
import Box from "@mui/material/Box"
7-
import Logo from "@components/logo"
86
import ScrollTop from "@components/scroll-top"
97

108
interface FooterItemsProps {

src/components/forms/ExcludeAccount.form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { Grid, Typography, Button, FormControl, makeStyles, Theme } from '@material-ui/core'
2+
import { Grid, Button, makeStyles, Theme } from '@material-ui/core'
33
import Spacing from '@components/spacing'
44
import { HeaderTitle } from '@components/header'
55

src/components/forms/PersonalData.form.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React, { useState, useContext } from 'react'
2-
import { Grid, Typography, TextField, InputAdornment, makeStyles, Theme } from '@material-ui/core'
2+
import { Grid, InputAdornment } from '@material-ui/core'
33

44

55
//Internal
66
import User, { UserProps } from '@services/user'
7-
import Spacing from '@components/spacing'
87
import LoadingButton from '@components/loading-button'
98
import { SnackbarContext } from '@components/snackbar/HacktoberfestSnackbar'
109
import { HacktoberfestTextInput } from '@components/text-input'
@@ -26,23 +25,7 @@ const validationSchema = () => Yup.object().shape({
2625
githubUser: Yup.string().required("Preenchimento do usuário Github obrigatório")
2726
})
2827

29-
const useStyles = makeStyles((theme: Theme) => ({
30-
fontCall: {
31-
fontSize: "2.25rem",
32-
[theme.breakpoints.up("lg")]: {
33-
fontSize: "3.5rem",
34-
}
35-
},
36-
subFontCall: {
37-
fontSize: "1.125rem",
38-
[theme.breakpoints.up("lg")]: {
39-
fontSize: "1.5rem",
40-
}
41-
}
42-
}))
43-
4428
const PersonalDataForm = (props: PersonalDataFormProps) => {
45-
const classes = useStyles();
4629
const { user, onSuccess, showOnlyEmailField = false } = props
4730
const [isLoading, setIsLoading] = useState<boolean>(false)
4831
const snackbarContext = useContext(SnackbarContext)

src/components/header/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from "react"
22
import { Theme, useMediaQuery } from "@material-ui/core"
33
import { makeStyles } from "@material-ui/core/styles"
4-
import Hidden from "@material-ui/core/Hidden"
54
import Navigation from "@components/navigation"
65

76
const useStyles = makeStyles((theme: Theme) => ({

src/components/hero/Carousel.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/components/hero/HeroCall.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import React, { useState, useEffect } from "react"
1+
import React from "react"
22
import Spacing from "@components/spacing"
33
import { makeStyles, Theme } from "@material-ui/core/styles"
44
import { useMediaQuery, Grid, Box } from "@material-ui/core"
5-
65
import SmartView from "./HeroSmart"
76
import DesktopView from "./HeroDesktop"
87
import { UserProps } from "@services/user"
98

10-
11-
129
const useStyles = makeStyles((theme: Theme) => ({
1310
wrapper: {
1411
height: "100%",

src/components/logo/Logo.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/components/logo/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/components/navigation/Navigation.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@ import {
55
Typography,
66
Slide,
77
Paper,
8-
useMediaQuery,
98
} from "@material-ui/core"
109
import { makeStyles, Theme } from "@material-ui/core/styles"
1110
import { NavigationItemProps, NavigationProps } from "./index"
12-
import Logo from "@components/logo"
1311
import NavigationItem from "./NavigationItem"
1412
import User from "@services/user"
1513
import { Image } from "@components/image"
1614

1715
import CloseIcon from "@material-ui/icons/Close"
1816
import Spacing from "@components/spacing"
19-
import { Height } from '@material-ui/icons'
2017

2118
interface NavigationItemsProps {
2219
items: Array<NavigationItemProps>
@@ -105,9 +102,6 @@ const useStyles = makeStyles((theme: Theme) => ({
105102

106103
const NavigationItems = (props: NavigationItemsProps) => {
107104
const [isLogged, setIsLogged] = useState<boolean>()
108-
const isDesktop = useMediaQuery((theme: Theme) => {
109-
return theme.breakpoints.up(theme.breakpoints.values.lg)
110-
})
111105

112106
useEffect(() => {
113107
const checkIfLogged = async () =>
@@ -118,11 +112,6 @@ const NavigationItems = (props: NavigationItemsProps) => {
118112
const classes = useStyles()
119113
return (
120114
<ul className={classes.navigation}>
121-
{isDesktop && (
122-
<li style={{ marginLeft: 20 }}>
123-
<Logo />
124-
</li>
125-
)}
126115
{props.items.map((def: NavigationItemProps) => (
127116
<NavigationItem key={def.label} {...def} />
128117
))}
@@ -139,7 +128,6 @@ const HomeCall = () => (
139128
)
140129

141130
const DeskMenu = () => {
142-
const classes = useStyles()
143131
return (
144132
<Grid
145133
container
@@ -214,9 +202,6 @@ const SmartMenu = () => {
214202
justifyContent="space-between"
215203
alignItems="center"
216204
>
217-
<Grid item xs={6} md={3} lg={1}>
218-
<Logo />
219-
</Grid>
220205
<Grid item xs={2} md={1}>
221206
<Button
222207
style={{

src/components/navigation/NavigationItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { makeStyles, Theme } from "@material-ui/core/styles"
44
interface NavigationItemProps {
55
label: string
66
link: string
7-
diferentColor: string
87
}
98

109
const useStyles = makeStyles((theme: Theme) => ({

0 commit comments

Comments
 (0)