forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - new page structure * - removed unecessary task changes * - handleClick -> onClick
- Loading branch information
1 parent
85155a6
commit fa33506
Showing
14 changed files
with
182 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { IconButton } from '@/ui/button/components/IconButton'; | ||
import { IconPlus } from '@/ui/icon'; | ||
|
||
type OwnProps = { | ||
onClick: () => void; | ||
}; | ||
|
||
export function PageAddButton({ onClick }: OwnProps) { | ||
return ( | ||
<IconButton | ||
icon={<IconPlus size={16} />} | ||
size="medium" | ||
variant="secondary" | ||
data-testid="add-button" | ||
accent="default" | ||
onClick={onClick} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
front/src/modules/ui/layout/components/PageFavoriteButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { IconButton } from '@/ui/button/components/IconButton'; | ||
import { IconHeart } from '@/ui/icon'; | ||
|
||
type OwnProps = { | ||
isFavorite: boolean; | ||
onClick: () => void; | ||
}; | ||
|
||
export function PageFavoriteButton({ isFavorite, onClick }: OwnProps) { | ||
return ( | ||
<IconButton | ||
icon={<IconHeart size={16} />} | ||
size="medium" | ||
variant="secondary" | ||
data-testid="add-button" | ||
accent={isFavorite ? 'danger' : 'default'} | ||
onClick={onClick} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
front/src/modules/ui/layout/components/WithTopBarContainer.tsx
This file was deleted.
Oops, something went wrong.
142 changes: 0 additions & 142 deletions
142
front/src/modules/ui/layout/page-bar/components/PageBar.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.