-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(profile): sortable links (#1392)
* chore(profile): updates links for DO * fix(gql): fixes gql schema * fix(gql): fixes schemas * chore(profile): sortable links starter * chore(profile): links sortable wip * chore(profile): sortable links * chore(profile): remove unnecessary items * wip * chore(profile): sortable links * chore(profile): cleaning up * wip * chore(profile): unsaved changes modal * chore(profile): minor changes in tooltip
- Loading branch information
Showing
9 changed files
with
225 additions
and
96 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
37 changes: 37 additions & 0 deletions
37
apps/profile/app/components/accounts/UnsavedChangesModal.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,37 @@ | ||
import React from 'react' | ||
import { Modal } from '@kubelt/design-system/src/molecules/modal/Modal' | ||
import SaveButton from './SaveButton' | ||
import { Text } from '@kubelt/design-system' | ||
|
||
import warn from '~/assets/warning.svg' | ||
|
||
const UnsavedChangesModal = ({ isOpen, handleClose }) => { | ||
return ( | ||
<Modal isOpen={isOpen} handleClose={handleClose}> | ||
<div className="relative bg-white lg:w-[32rem] rounded-xl pb-3 pr-6"> | ||
<div className="relative bg-white rounded-xl pl-6 pt-6"> | ||
<div className="mb-[53px] flex flex-row items-start"> | ||
<img src={warn} alt="warning" className="mr-4" /> | ||
<div className="flex flex-col items-start"> | ||
<Text size="lg" className="text-gray-900 mb-2"> | ||
You have Unsaved Changes | ||
</Text> | ||
<Text size="sm" className="text-gray-500 text-left"> | ||
You have made some changes. Do you want to discard or save them? | ||
</Text> | ||
</div> | ||
</div> | ||
<SaveButton | ||
size="l" | ||
isFormChanged={true} | ||
discardFn={() => { | ||
console.log('hey') | ||
}} | ||
/> | ||
</div> | ||
</div> | ||
</Modal> | ||
) | ||
} | ||
|
||
export default UnsavedChangesModal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { LoaderFunction } from '@remix-run/cloudflare' | ||
import type { LoaderFunction } from '@remix-run/cloudflare' | ||
import { loader as profileLoader } from '~/routes/$profile.json' | ||
|
||
export const loader: LoaderFunction = profileLoader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
export default function AccountSettingsIntegrations() { | ||
return ( | ||
<>Connection Integrations</> | ||
|
Oops, something went wrong.