Skip to content

Commit

Permalink
feat(common): upgrade next, react, big design, and supporting libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-chaz committed Jun 28, 2022
1 parent f990ac5 commit 17d88f6
Show file tree
Hide file tree
Showing 12 changed files with 1,015 additions and 3,338 deletions.
4 changes: 2 additions & 2 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ const Header = () => {
});

const items = [
{ id: TabIds.HOME, title: 'Home' },
{ id: TabIds.PRODUCTS, title: 'Products' },
{ ariaControls: 'home', id: TabIds.HOME, title: 'Home' },
{ ariaControls: 'products', id: TabIds.PRODUCTS, title: 'Products' },
];

const handleTabClick = (tabId: string) => {
Expand Down
10 changes: 6 additions & 4 deletions lib/db.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { Db } from '../types'
import { Db } from '../types';
import * as firebaseDB from './dbs/firebase';
import * as sqlDB from './dbs/mysql';

const { DB_TYPE } = process.env;

let db: Db;

switch (DB_TYPE) {
case 'firebase':
db = require('./dbs/firebase');
db = firebaseDB;
break;
case 'mysql':
db = require('./dbs/mysql');
db = sqlDB;
break;
default:
db = require('./dbs/firebase');
db = firebaseDB;
break;
}

Expand Down
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
Loading

0 comments on commit 17d88f6

Please sign in to comment.