default
Function: default()
default():
Element
Defined in: src/screens/CommunityProfile/CommunityProfile.tsx:59
CommunityProfile
component allows users to view and update their community profile details.
It includes functionalities to:
- Display current community profile information
- Update profile details including social media links and logo
- Reset profile changes to the initial state
Returns
Element
JSX.Element - The CommunityProfile
component.
Example
<CommunityProfile />
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:
.inputField
.outlineButton
.addButton
For more details on the reusable classes, refer to the global CSS file.