Skip to content

Commit 17d88f6

Browse files
committed
feat(common): upgrade next, react, big design, and supporting libraries
1 parent f990ac5 commit 17d88f6

File tree

12 files changed

+1015
-3338
lines changed

12 files changed

+1015
-3338
lines changed

components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const Header = () => {
5858
});
5959

6060
const items = [
61-
{ id: TabIds.HOME, title: 'Home' },
62-
{ id: TabIds.PRODUCTS, title: 'Products' },
61+
{ ariaControls: 'home', id: TabIds.HOME, title: 'Home' },
62+
{ ariaControls: 'products', id: TabIds.PRODUCTS, title: 'Products' },
6363
];
6464

6565
const handleTabClick = (tabId: string) => {

lib/db.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
import { Db } from '../types'
1+
import { Db } from '../types';
2+
import * as firebaseDB from './dbs/firebase';
3+
import * as sqlDB from './dbs/mysql';
24

35
const { DB_TYPE } = process.env;
46

57
let db: Db;
68

79
switch (DB_TYPE) {
810
case 'firebase':
9-
db = require('./dbs/firebase');
11+
db = firebaseDB;
1012
break;
1113
case 'mysql':
12-
db = require('./dbs/mysql');
14+
db = sqlDB;
1315
break;
1416
default:
15-
db = require('./dbs/firebase');
17+
db = firebaseDB;
1618
break;
1719
}
1820

next-env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

0 commit comments

Comments
 (0)