Skip to content

Commit

Permalink
Remove json2csv and hide other fields
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 19, 2024
1 parent 0cfd957 commit 54accf5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
30 changes: 0 additions & 30 deletions apps/vpnmanager/src/components/Statistics/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ const Statistics: React.FC<Props> = ({ data: result }) => {
const router = useRouter();
const yesterday = startOfYesterday();
const [filters, setFilters] = useState({
ID: router.query.ID || "",
userId: router.query.userId || "",
email: router.query.email || "",
"date.start": router.query["date.start"] || "",
"date.end": router.query["date.end"] || "",
Expand Down Expand Up @@ -148,18 +146,6 @@ const Statistics: React.FC<Props> = ({ data: result }) => {
<TableContainer component={Paper}>
<Section sx={{ px: { xs: 2.5, sm: 0 } }}>
<Grid container spacing={2} padding={2}>
<Grid item xs={12} sm={6} md={4} lg={3}>
<TextField
name="ID"
variant="outlined"
value={filters.ID}
InputLabelProps={{ shrink: true }}
onChange={handleFilterChange}
placeholder="ID"
size="small"
fullWidth
/>
</Grid>
<Grid item xs={12} sm={6} md={4} lg={3}>
<TextField
label="Date"
Expand All @@ -174,18 +160,6 @@ const Statistics: React.FC<Props> = ({ data: result }) => {
fullWidth
/>
</Grid>
<Grid item xs={12} sm={6} md={4} lg={3}>
<TextField
name="userId"
variant="outlined"
value={filters.userId}
onChange={handleFilterChange}
InputLabelProps={{ shrink: true }}
placeholder="User ID"
size="small"
fullWidth
/>
</Grid>
<Grid item xs={12} sm={6} md={4} lg={3}>
<TextField
name="email"
Expand Down Expand Up @@ -252,9 +226,6 @@ const Statistics: React.FC<Props> = ({ data: result }) => {
<TableHead>
<TableRow>
<TableCell sx={{ fontWeight: "bold" }}>Email</TableCell>
<TableCell sx={{ fontWeight: "bold", whiteSpace: "nowrap" }}>
User ID
</TableCell>
<TableCell sx={{ fontWeight: "bold" }}>Usage</TableCell>
<TableCell sx={{ fontWeight: "bold" }}>Date</TableCell>
<TableCell sx={{ fontWeight: "bold", whiteSpace: "nowrap" }}>
Expand All @@ -269,7 +240,6 @@ const Statistics: React.FC<Props> = ({ data: result }) => {
paginatedData.map((row) => (
<TableRow key={row.ID}>
<TableCell>{row.email}</TableCell>
<TableCell>{row.userId}</TableCell>
<TableCell>{row.usage}</TableCell>
<TableCell>{format(row.date, "yyyy-MM-dd")}</TableCell>
<TableCell>{row.cumulativeData}</TableCell>
Expand Down
1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ catalog:
js-yaml: ^4.1.0
jscodeshift: ^0.15.2
jsdom: ^24.1.3
json2csv: 6.0.0-alpha.2
jwt-decode: ^4.0.0
leaflet: ^1.9.4
lint-staged: ^15.2.10
Expand Down

0 comments on commit 54accf5

Please sign in to comment.