Skip to content

Commit

Permalink
fixes formatting, hides analytics for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamperoyge committed Jul 25, 2023
1 parent b5f5667 commit 272ceee
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const Heatmap = ({ data, loading, refetch }) => {
lineHeight="16px"
color="black"
>
Hourly discord presence
Hourly Discord Presence
</Typography>

<Typography
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import moment from "moment";

const getMembersAndOnboardedMembers = (apiData, activeFilter) => {
const labels = apiData.map((item) => moment(item?.date).format("DD/MM"));
const labels = apiData.map((item) => moment(item?.date).format("MM/DD"));
const total = apiData.map((item) => item?.total);

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import moment from "moment";


const getMessagesAndReactionsData = (apiData, filterType) => {
const labels = apiData.map((item) => moment(item?.date).format("DD/MM"));
const labels = apiData.map((item) => moment(item?.date).format("MM/DD"));

const messagesData = apiData.map((item) => item?.counts.discordMessage);
const reactionsData = apiData.map((item) => item?.counts.discordReaction);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import moment from "moment";

const getSubmissionsData = (apiData, filterType) => {
const labels = apiData.map((item) => moment(item?.date).format("DD/MM"));
const labels = apiData.map((item) => moment(item?.date).format("MM/DD"));

const submissionsTotal = apiData.map((item) => item?.counts.total);
const submissionsApproved = apiData.map((item) => item?.counts.approved);
Expand Down
14 changes: 9 additions & 5 deletions wondrous-bot-admin/src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ const Header = () => {
label: 'LEVELS',
activeBgColor: '#FEE2CA',
},
{
path: '/analytics',
label: 'ANALYTICS',
activeBgColor: '#FFCB5D',
}
...(import.meta.env.VITE_PRODUCTION
? []
: [
{
path: "/analytics",
label: "ANALYTICS",
activeBgColor: "#FFCB5D",
},
]),
];

return (
Expand Down

0 comments on commit 272ceee

Please sign in to comment.