Skip to content

Commit 9771c28

Browse files
committed
removed api kljuc text from prodajna mjesta
1 parent a8af619 commit 9771c28

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

frontend/src/pages/admin/ProdajnaMjesta.jsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default function ProdajnaMjesta() {
66
const [loading, setLoading] = useState(true);
77
const [showForm, setShowForm] = useState(false);
88
const [editingId, setEditingId] = useState(null);
9-
const [firaApiUrl, setFiraApiUrl] = useState("");
109
const [activeLocationId, setActiveLocationId] = useState(null);
1110
const [savingActive, setSavingActive] = useState(false);
1211

@@ -48,11 +47,6 @@ export default function ProdajnaMjesta() {
4847

4948
fetchLocations();
5049

51-
fetch(`${import.meta.env.VITE_API_URL}/api/config`, { credentials: "include" })
52-
.then(r => r.json())
53-
.then(data => setFiraApiUrl(data.firaApiKey || ""))
54-
.catch(() => {});
55-
5650
fetch(`${import.meta.env.VITE_API_URL}/api/settings/active-location`, { credentials: "include" })
5751
.then(r => r.json())
5852
.then(data => setActiveLocationId(data.selectedProdajnoMjestoId ?? null))
@@ -166,11 +160,6 @@ export default function ProdajnaMjesta() {
166160
<div className="page-container">
167161
<div className="page-header">
168162
<h1>Upravljanje Prodajnim Mjestima</h1>
169-
{firaApiUrl && (
170-
<p style={{ margin: 0, fontSize: "0.85rem", color: "#666" }}>
171-
FIRA API Key: <code>{firaApiUrl}</code>
172-
</p>
173-
)}
174163
<button
175164
onClick={() => {
176165
resetForm();

0 commit comments

Comments
 (0)