Skip to content

Commit 650bfeb

Browse files
authored
Collins (#327)
* refactor: update project components and API for voting functionality - Adjust layout and styling in ProjectsPage and ProjectCard components. - Enhance ProjectSidebar to include crowdfund data and voting logic. - Implement new API methods for voting, retrieving votes, and removing votes. - Update types for vote handling in the API. - Clean up unused code and improve responsiveness across components. * chore: update project dependencies and enhance project details layout * feat: added static api for staging * fix: made few changes * fix: minor changes * feat: chaged test data * fix: minor fixes
1 parent 5215963 commit 650bfeb

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

components/modals/fund-project/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const FundProject = ({ open, setOpen, project }: FundProjectProps) => {
5757
const [flowStep, setFlowStep] = useState<
5858
'form' | 'preparing' | 'signing' | 'confirming' | 'success'
5959
>('form');
60-
const [unsignedXdr, setUnsignedXdr] = useState<string | null>(null);
6160
const [error, setError] = useState<string | null>(null);
6261

6362
// Wallet hooks
@@ -208,10 +207,8 @@ const FundProject = ({ open, setOpen, project }: FundProjectProps) => {
208207
throw new Error(prepareResponse.message || 'Failed to prepare funding');
209208
}
210209

211-
setUnsignedXdr(prepareResponse.data.unsignedXdr);
212-
213210
// Step 2: Sign transaction
214-
const signedXdr = await signTransaction(unsignedXdr || '');
211+
const signedXdr = await signTransaction(prepareResponse.data.unsignedXdr);
215212

216213
// Step 3: Confirm funding
217214
setFlowStep('confirming');
@@ -288,7 +285,6 @@ const FundProject = ({ open, setOpen, project }: FundProjectProps) => {
288285
setSubmitErrors([]);
289286
setFlowStep('form');
290287
setError(null);
291-
setUnsignedXdr(null);
292288
setOpen(false);
293289
};
294290

components/organization/OrganizationSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function OrganizationSettings({
3636
const [modalOpen, setModalOpen] = useState(false);
3737

3838
const handleSave = () => {
39-
console.log('Saving organization data:', formData);
39+
// console.log('Saving organization data:', formData);
4040
};
4141

4242
return (

0 commit comments

Comments
 (0)