Skip to content

Commit

Permalink
Remove all .env files from the repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Timotej979 committed May 3, 2024
1 parent fb8f2c1 commit f28137e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Environment configs
.env
**.env

# Volumes for supabase
volumes/
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/VotingSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const VotingSection = ({ onCategorySelected }: { onCategorySelected: () => void
const [currentPhase, setCurrentPhase] = useState("voting");
const [categories, setCategories] = useState([
{ name: "Maharaja", cuisine: "Indian", votes: 6 },
{ name: "Random", cuisine: "Grill", votes: 6 },
{ name: "Das ist Valter", cuisine: "Grill", votes: 6 },
{ name: "Gostilna Čad", cuisine: "Grill", votes: 6 },
]);

Expand All @@ -46,6 +46,7 @@ const VotingSection = ({ onCategorySelected }: { onCategorySelected: () => void

const [manualOverride, setManualOverride] = useState(false);


useEffect(() => {
// Fetch the parsed data here using fetch or any other method
const fetchParsedData = async () => {
Expand All @@ -55,6 +56,7 @@ const VotingSection = ({ onCategorySelected }: { onCategorySelected: () => void
const lon = position.coords.longitude;
const object = { "lat":lat, "lon":lon};

/*
// Call the API to get the list of restaurants
const response = await fetch(`/api/restaurants`, {
method: "POST",
Expand Down Expand Up @@ -134,6 +136,8 @@ const VotingSection = ({ onCategorySelected }: { onCategorySelected: () => void
// Update the restaurants state
setRestaurants(newRestaurants);
*/
});
};

Expand Down

0 comments on commit f28137e

Please sign in to comment.