Skip to content

Commit

Permalink
remove some unnecessary react imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nconrad committed Apr 18, 2024
1 parent 7cf8288 commit b9b54d9
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/components/ImageLinkCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { Link } from 'react-router-dom'
import styled from 'styled-components'
import Card from '@mui/material/Card'
Expand Down
1 change: 0 additions & 1 deletion src/components/NavbarItems/SignInBtn.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import styled from 'styled-components'
import Button from '@mui/material/Button'
import { LoginRounded } from '@mui/icons-material'
Expand Down
2 changes: 1 addition & 1 deletion src/components/PhotoGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* be used in MDX files as <PhotoGallery driveFolderID={...} />
*/

import React, {useEffect, useState} from 'react'
import { useEffect, useState } from 'react'


type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PhotoIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* are organized into directories.
*/

import React, {useEffect, useState} from 'react'
import {useEffect, useState} from 'react'
import styled from 'styled-components'
import { Link, useLocation, useHistory } from 'react-router-dom'

Expand Down
2 changes: 1 addition & 1 deletion src/components/home/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react'
import { useEffect, useState } from 'react'


const calID = '65dcf6922cf9f84679f598865716f1fea2b7d974896c300fda9d3e26810aa1e8@group.calendar.google.com'
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/CodeWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CodeWindow(props: Props) {
}
</div>
{code &&
<Highlight theme={themes.github} language={language} code={code}>
<Highlight theme={themes.dracula} language={language} code={code}>
{({ className, style, tokens, getLineProps, getTokenProps }) => (
<pre className={className} style={style}>
{tokens.map((line, i) => (
Expand Down
9 changes: 4 additions & 5 deletions src/components/home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { useState } from 'react'
import { Link } from 'react-router-dom'
import styled from 'styled-components'
Expand Down Expand Up @@ -137,12 +136,12 @@ export default function Home() {
<div className="bg-white">
<Section>
<div className="flex flex-col md:flex-row gap-10 md:gap-4 xl:gap-10">
<Link to="science" className="card">
<Link to="/science" className="card">
<img src={require('@site/static/img/home/learn.jpg').default} />
<h3 className="flex items-center gap-2">
<LearnIcon />Learn
</h3>
<p>Explore some of the <Link to="science">science</Link> made possible with Sage</p>
<p>Explore some of the <Link to="/science">science</Link> made possible with Sage</p>
</Link>
<a href={`${portal}/apps`} className="card">
<img src={require('@site/static/img/home/create-app.png').default} />
Expand Down Expand Up @@ -312,8 +311,8 @@ export default function Home() {
})}

<div className="hidden md:flex justify-between mx-5">
<Link to="publications" className="focused-link gap-1">Publications <Arrow /></Link>
<Link to="science" className="focused-link gap-1">Science<Arrow /></Link>
<Link to="/publications" className="focused-link gap-1">Publications <Arrow /></Link>
<Link to="/science" className="focused-link gap-1">Science<Arrow /></Link>
<a href={`${portal}/apps`} className="focused-link gap-1">Apps <Arrow /></a>
</div>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/components/home/JobMetrics.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react'

import HubIcon from '@mui/icons-material/HubOutlined'
import ScheduleIcon from '@mui/icons-material/ScheduleRounded'
import Apps from '@mui/icons-material/AppsRounded'
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/NewsPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react'
import { useEffect, useState } from 'react'
import { Link } from 'react-router-dom'


Expand Down
2 changes: 1 addition & 1 deletion src/components/home/StatusChart.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from 'react'
import { useEffect, useRef, useState } from 'react'

import * as topojson from 'topojson'
import { geoPath, geoAlbersUsa } from 'd3-geo'
Expand Down
2 changes: 0 additions & 2 deletions src/components/home/TwitterSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

import React from 'react'
import Skeleton from '@mui/material/Skeleton'

export default function TwitterSkeleton() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/TypeWriter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'
import { useState, useEffect } from 'react'


export default function TypeWriter(props) {
Expand Down
1 change: 0 additions & 1 deletion src/components/home/_DeprecatedActiveApps.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import styled from 'styled-components'
import { type App } from './StatusChart'

Expand Down

0 comments on commit b9b54d9

Please sign in to comment.