Skip to content

[Fix]: AntD depreciation errors #1792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ const WorkspaceList = styled.div`
}
`;

const WorkspaceItem = styled.div<{ isActive?: boolean }>`
const WorkspaceItem = styled.div<{ $isActive?: boolean }>`
display: flex;
align-items: center;
padding: 10px 16px;
cursor: pointer;
transition: background-color 0.2s;
background-color: ${props => props.isActive ? '#f0f5ff' : 'transparent'};
background-color: ${props => props.$isActive ? '#f0f5ff' : 'transparent'};
&:hover {
background-color: ${props => props.isActive ? '#f0f5ff' : '#f8f9fa'};
background-color: ${props => props.$isActive ? '#f0f5ff' : '#f8f9fa'};
}
`;

Expand Down Expand Up @@ -242,7 +242,7 @@ export default function WorkspaceSectionComponent({
displayWorkspaces.map((org: Org) => (
<WorkspaceItem
key={org.id}
isActive={user.currentOrgId === org.id}
$isActive={user.currentOrgId === org.id}
onClick={() => handleOrgSwitch(org.id)}
>
<WorkspaceName title={org.name}>{org.name}</WorkspaceName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export default function ProfileDropdown(props: DropDownProps) {
<StyledDropdown
open={dropdownVisible}
onOpenChange={setDropdownVisible}
dropdownRender={() => dropdownContent}
popupRender={() => dropdownContent}
trigger={["click"]}
placement="bottomRight"
>
Expand Down
1 change: 0 additions & 1 deletion client/packages/lowcoder/src/redux/sagas/orgSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ export function* fetchWorkspacesSaga(action: ReduxAction<{page: number, pageSize

if (validateResponse(response)) {
const apiData = response.data.data;
console.log("apiData", apiData);

// Transform orgId/orgName to match Org interface
const transformedItems = apiData.data.map(item => ({
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy