-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from alleslabs/feat/permission-save-code
feat: permission save new code
- Loading branch information
Showing
19 changed files
with
179 additions
and
103 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
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
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,20 +1,20 @@ | ||
import type { CodeLocalInfo } from "lib/stores/code"; | ||
import type { CodeInfo } from "lib/types"; | ||
|
||
import { CodeDetailsTemplateModal } from "./CodeDetailsTemplate"; | ||
|
||
interface EditCodeDetailsModalProps { | ||
codeLocalInfo: CodeLocalInfo; | ||
codeInfo: CodeInfo; | ||
triggerElement: JSX.Element; | ||
} | ||
export const EditCodeDetailsModal = ({ | ||
codeLocalInfo, | ||
codeInfo, | ||
triggerElement, | ||
}: EditCodeDetailsModalProps) => ( | ||
<CodeDetailsTemplateModal | ||
title="Edit Code Name" | ||
mainBtnTitle="Save" | ||
isNewCode={false} | ||
codeLocalInfo={codeLocalInfo} | ||
codeInfo={codeInfo} | ||
triggerElement={triggerElement} | ||
/> | ||
); |
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,21 +1,21 @@ | ||
import type { CodeLocalInfo } from "lib/stores/code"; | ||
import type { CodeInfo } from "lib/types"; | ||
|
||
import { CodeDetailsTemplateModal } from "./CodeDetailsTemplate"; | ||
|
||
interface SaveCodeDetailsModalProps { | ||
codeLocalInfo: CodeLocalInfo; | ||
codeInfo: CodeInfo; | ||
triggerElement: JSX.Element; | ||
} | ||
export const SaveCodeDetailsModal = ({ | ||
codeLocalInfo, | ||
codeInfo, | ||
triggerElement, | ||
}: SaveCodeDetailsModalProps) => ( | ||
<CodeDetailsTemplateModal | ||
title="Save New Code" | ||
helperText={`Save other stored codes to your "Saved Codes" list`} | ||
mainBtnTitle="Save New Code" | ||
isNewCode | ||
codeLocalInfo={codeLocalInfo} | ||
codeInfo={codeInfo} | ||
triggerElement={triggerElement} | ||
/> | ||
); |
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
Oops, something went wrong.
6feaeea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
terra-celatone-frontend-staging – ./
terra-celatone-frontend-staging-git-develop-alleslabs.vercel.app
terra-celatone-frontend-staging.vercel.app
terra-celatone-frontend-staging-alleslabs.vercel.app
terra-staging.celat.one
6feaeea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
osmosis-celatone-frontend-staging – ./
osmosis-celatone-frontend-staging-alleslabs.vercel.app
celatone-frontend-staging.vercel.app
osmosis-celatone-frontend-staging-git-develop-alleslabs.vercel.app
osmosis-staging.celat.one
celatone-staging.osmosis.zone