feat: replace team list view with org list view UI and fix team view user availability (#15344)
* feat: replace team list view with org list view UI and fix team view user availability * update * update2 * some changes * Remove old team availability modal - fix flex direction * fix * fix type error * update * update * fix type error * update * upfate edit sheet * final update * fix flaky e2e * fix e2e * typo * profile update flow * fix type error and refactor * small update * NIT * update * chore: fix types * update --------- Co-authored-by: sean-brydon <[email protected]> Co-authored-by: Amit Sharma <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
11 files changed
+927
-481
No files matched your search
@@ -13,13 +13,14 @@ function EditModeFooter() {
|
||||
<Button
|
||||
color="secondary"
|
||||
type="button"
|
||||
className="justify-center"
|
||||
onClick={() => {
|
||||
setEditMode(false);
|
||||
}}>
|
||||
{t("cancel")}
|
||||
</Button>
|
||||
|
||||
<Button type="submit" className="w-fit" form="edit-user-form" loading={isPending}>
|
||||
<Button type="submit" loading={isPending} className="justify-center">
|
||||
{t("update")}
|
||||
</Button>
|
||||
</>
|
||||
@@ -39,6 +40,7 @@ function MoreInfoFooter() {
|
||||
</SheetClose>
|
||||
<Button
|
||||
type="button"
|
||||
className="justify-center"
|
||||
onClick={() => {
|
||||
setEditMode(true);
|
||||
}}
|
||||
|
||||
@@ -4,12 +4,12 @@ interface EditModeState {
|
||||
editMode: boolean;
|
||||
setEditMode: (editMode: boolean) => void;
|
||||
mutationLoading: boolean;
|
||||
setMutationloading: (loading: boolean) => void;
|
||||
setMutationLoading: (loading: boolean) => void;
|
||||
}
|
||||
|
||||
export const useEditMode = create<EditModeState>((set) => ({
|
||||
editMode: false,
|
||||
setEditMode: (editMode) => set({ editMode }),
|
||||
mutationLoading: false,
|
||||
setMutationloading: (loading) => set({ mutationLoading: loading }),
|
||||
setMutationLoading: (loading) => set({ mutationLoading: loading }),
|
||||
}));
|
||||
Reference in new issue
Block a user