Skip to content

Commit

Permalink
fix: lint 오류 수정
Browse files Browse the repository at this point in the history
Signed-off-by: shmruin <meme_hm@naver.com>
  • Loading branch information
shmruin committed Oct 12, 2024
1 parent 9d9bf2c commit 374347f
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions components/contributeInfo.jsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
import { useEffect, useState, useRef } from 'react';
import { Octokit } from 'octokit';
import { initializeApp } from "firebase/app";
import { getFirestore, doc, getDoc } from "firebase/firestore";
import { initializeApp } from 'firebase/app';
import { getFirestore, doc, getDoc } from 'firebase/firestore';
import { useTheme } from 'nextra-theme-docs';
import Table from './common/table';

const firebaseConfig = {
apiKey: "AIzaSyCMC07HfFRIFUVMA7eULAsmTvoC7Frpna8",
authDomain: "my-oss-pr.firebaseapp.com",
projectId: "my-oss-pr",
storageBucket: "my-oss-pr.appspot.com",
messagingSenderId: "6268125850",
appId: "1:6268125850:web:d84b95103cbd1e81a21523",
measurementId: "G-RLP5Y94VKY"
apiKey: 'AIzaSyCMC07HfFRIFUVMA7eULAsmTvoC7Frpna8',
authDomain: 'my-oss-pr.firebaseapp.com',
projectId: 'my-oss-pr',
storageBucket: 'my-oss-pr.appspot.com',
messagingSenderId: '6268125850',
appId: '1:6268125850:web:d84b95103cbd1e81a21523',
measurementId: 'G-RLP5Y94VKY',
};

const app = initializeApp(firebaseConfig);
const db = getFirestore(app);

async function fetchToken() {
const docRef = doc(db, "oss", "info");
const docRef = doc(db, 'oss', 'info');
const docSnap = await getDoc(docRef);
if (docSnap.exists()) {
return docSnap.data().token;
} else {
console.error("No token found in Firestore");
return null;
}
console.error('No token found in Firestore');
return null;
}

const gitProfileBuilder = userInfo => (
Expand Down

0 comments on commit 374347f

Please sign in to comment.