remove console logs

This commit is contained in:
Shams mosowi
2020-04-15 18:16:35 +08:00
parent 9028f0a7c5
commit ea686171b7
3 changed files with 0 additions and 6 deletions

View File

@@ -15,7 +15,6 @@ export default function FiretableUser({ column, value }: CustomCellProps) {
if (!value || !value.displayName || !value.timestamp) return <div />;
const updatedAt = dateFns.format(value.timestamp.toDate(), "hh:mma ddMMM");
console.log(updatedAt, value.timestamp);
return (
<Tooltip title={updatedAt}>
<Chip

View File

@@ -63,7 +63,6 @@ export default function Table({ collection, filters }: ITableProps) {
useEffect(() => {
if (tableActions && tableState && tableState.tablePath !== collection) {
console.log("setting table");
tableActions.table.set(collection, filters);
if (sideDrawerRef?.current) sideDrawerRef.current.setCell!(null);
}

View File

@@ -56,7 +56,6 @@ const tableInitialState = {
const useTable = (initialOverrides: any) => {
const snack = useContext(SnackContext);
const [perviousConfigs, setPerviousConfigs] = useTableFilterHistory();
console.log({ perviousConfigs });
const [tableState, tableDispatch] = useReducer(tableReducer, {
...tableInitialState,
...initialOverrides,
@@ -258,7 +257,6 @@ const useTable = (initialOverrides: any) => {
*/
const addRow = async (data?: any) => {
const valuesFromFilter = tableState.filters.reduce(filterReducer, {});
console.log(valuesFromFilter);
const { rows, orderBy, path } = tableState;
const docData = {
@@ -267,14 +265,12 @@ const useTable = (initialOverrides: any) => {
updatedAt: serverTimestamp(),
...data,
};
console.log(docData);
try {
if (rows.length === 0) {
await db.collection(path).add(docData);
} else {
const firstId = rows[0].id;
const newId = generateSmallerId(firstId);
console.log(newId);
await db
.collection(path)
.doc(newId)