InterfaceCampaignModal
Interface: InterfaceCampaignModal
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:45
Props for the CampaignModal component.
CSS Strategy Explanation:
To ensure consistency across the application and reduce duplication, common styles
(such as button styles) have been moved to the global CSS file. Instead of using
component-specific classes (e.g., .greenregbtnOrganizationFundCampaign
, .greenregbtnPledge
), a single reusable
class (e.g., .addButton) is now applied.
Benefits:
- **Reduces redundant CSS code.
- **Improves maintainability by centralizing common styles.
- **Ensures consistent styling across components.
Global CSS Classes used:
.addButton
For more details on the reusable classes, refer to the global CSS file.
Properties
campaign
campaign:
InterfaceCampaignInfo
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:50
fundId
fundId:
string
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:48
hide()
hide: () =>
void
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:47
Returns
void
isOpen
isOpen:
boolean
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:46
mode
mode:
"create"
|"edit"
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:52
orgId
orgId:
string
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:49
refetchCampaign()
refetchCampaign: () =>
void
Defined in: src/screens/OrganizationFundCampaign/CampaignModal.tsx:51
Returns
void