Skip to content

Commit

Permalink
Hide patterns by default
Browse files Browse the repository at this point in the history
Fixes #25
  • Loading branch information
Sean Prashad authored and Sean Prashad committed Jun 9, 2020
1 parent 46c7b00 commit 434275d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Table/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react';
import React, { useState, useEffect, useRef } from 'react';
import {
Table as ReactTable,
Container,
Expand Down Expand Up @@ -54,8 +54,6 @@ const Table = () => {
return (
<input
type="checkbox"
className="checkbox"
name={cellInfo.row.original.name}
checked={checked[cellInfo.row.original.id]}
onChange={() => {
checked[cellInfo.row.original.id] = !checked[
Expand Down Expand Up @@ -116,7 +114,7 @@ const Table = () => {
.map(pattern => {
return (
<Badge key={pattern} className={pattern} pill>
{pattern}
{checked[cellInfo.row.original.id] ? pattern : '***'}
</Badge>
);
});
Expand Down

0 comments on commit 434275d

Please sign in to comment.