Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="%PUBLIC_URL%/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand All @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Graviti</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
10 changes: 5 additions & 5 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Graviti",
"name": "Graviti - Push management system and pull customers",
"icons": [
{
"src": "favicon.ico",
"src": "icon.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"src": "icon.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"src": "icon.png",
"type": "image/png",
"sizes": "512x512"
}
Expand Down
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

12 changes: 11 additions & 1 deletion src/Components/Common/Contacts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ import React from 'react'
const Contacts = () => {
return (
<div>
Contact Us
<h1>Created by:</h1>
<p>Saee Chormunge</p>
<p>Jholline Jepson</p>
<p>Cibi Sri Balaji</p>
<p>Balaji Senthilkumar</p>
<p>Lakshmi Sowmya</p>
<p>Sadhana</p>
<p>Spoorthy Pateel</p>
<p>Bhavya Sri</p>
<p>Mohammed Zaid Farooki</p>
<p>Om Prakash Gupta</p>
</div>
)
}
Expand Down
25 changes: 0 additions & 25 deletions src/Components/Common/Navbar.jsx

This file was deleted.

64 changes: 0 additions & 64 deletions src/Components/Common/Sidebar.jsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/Components/Coupons/AddCoupon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
FormControlLabel,
Box,
Typography,
Paper,
Divider,
Divider
} from "@mui/material";
import { Container } from "@mui/system";

Expand Down
4 changes: 1 addition & 3 deletions src/Components/Coupons/CouponsList.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from "react";
import { List, ListItem, ListItemText, ListItemIcon } from "@mui/material";
import { Link as RouterLink } from "react-router-dom";
import { ToggleButton, ToggleButtonGroup } from "@mui/material";
import { List, ListItem } from "@mui/material";
import Switch from "@mui/material/Switch";

const CouponsList = ({ coupons = [], onStatusToggle }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Coupons/CouponsPage.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import { Paper, Button, Typography, Box, Container } from "@mui/material";
import { Button, Typography, Box, Container } from "@mui/material";
import AddCircleOutlineIcon from "@mui/icons-material/AddCircleOutline";
import CouponsList from "./CouponsList";
import { useNavigate } from "react-router-dom";
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Offers/AddOffers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
FormControlLabel,
Box,
Typography,
Paper,
Divider,
Divider
} from "@mui/material";
import { Container } from "@mui/system";

Expand Down
11 changes: 4 additions & 7 deletions src/Components/Offers/OffersList.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { List, ListItem, ListItemText, ListItemIcon } from "@mui/material";
import { Link as RouterLink } from "react-router-dom";
import { List, ListItem, ListItemText, ListItemIcon, Switch } from "@mui/material";

const OffersList = ({ offers = [], onStatusToggle }) => {
if (offers.length === 0) {
Expand All @@ -12,8 +11,6 @@ const OffersList = ({ offers = [], onStatusToggle }) => {
{offers.map((offer) => (
<ListItem
key={offer.id} // Use offer.id for keys
component={RouterLink}
to={`/some-path/${offer.id}`}
button={true}
className={`offer-item ${offer.status ? "active" : "inactive"}`}
>
Expand All @@ -39,15 +36,15 @@ const OffersList = ({ offers = [], onStatusToggle }) => {
}
/>
<div className="offer-status">
<button
<Switch
className="status-toggle"
onClick={(e) => {
onToggle={(e) => {
e.stopPropagation(); // Stop propagation to prevent ListItem from triggering
onStatusToggle(offer.tier_id);
}}
>
{offer.status ? "Active" : "Inactive"}
</button>
</Switch>
</div>
</ListItem>
))}
Expand Down
1 change: 0 additions & 1 deletion src/Components/Offers/OffersPage.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState , useEffect} from "react";
import {
Paper,
Button,
Typography,
Box,
Expand Down
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.