Skip to content

Commit

Permalink
style: changed function definitions for Commits and Team
Browse files Browse the repository at this point in the history
  • Loading branch information
stickyPiston committed Jul 6, 2024
1 parent ec60ff0 commit 51f8b13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import Clock from './components/Clock';
import BoardText from './components/BoardText';
import Quotes from './components/Quotes';
import Ad from './components/Ad';
import { TeamPage } from './components/Team';
import TeamPage from './components/Team';
import {GITHUB_REPOS, LOGO, NEXT_INTERVAL, NEXT_INTERVAL_COMMITS} from './helpers/env';
import { CommitsPage } from './components/Commits';
import CommitsPage from './components/Commits';

export default class App extends Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Commits.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function formatDate(date) {
return `${dd}-${mm}-${yyyy}`;
}

export const CommitsPage = () => {
export default function CommitsPage() {
const { data: commits, isLoading } = getAllCommits();
if (isLoading) return <> Loading... </>;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { octokit } from '../helpers/github';
import { useQuery } from '../hooks/useQuery';
import Poster from './Poster';

export const TeamPage = () => {
export default function TeamPage() {
const { data: members, isLoading } = useQuery(async () => {
const res = await octokit.rest.orgs.listMembers({
org: 'svsticky',
Expand Down

0 comments on commit 51f8b13

Please sign in to comment.