added new creationContext type

This commit is contained in:
Myzel394 2023-01-19 12:57:51 +01:00
parent 87d9eaef50
commit 6a9aa24e2d
4 changed files with 8 additions and 1 deletions

View File

@ -172,6 +172,9 @@
}, },
"extension": { "extension": {
"label": "In der Erweiterung erstellt" "label": "In der Erweiterung erstellt"
},
"extension-inline": {
"label": "Mit der Erweiterung erstellt"
} }
}, },
"createdOn": { "createdOn": {

View File

@ -180,6 +180,9 @@
}, },
"extension": { "extension": {
"label": "Created in the extension" "label": "Created in the extension"
},
"extension-inline": {
"label": "Created using the extension"
} }
}, },
"createdOn": { "createdOn": {

View File

@ -58,6 +58,7 @@ interface Form {
const CREATION_CONTEXT_ICON_MAP: Record<AliasNote["data"]["creationContext"], ReactElement> = { const CREATION_CONTEXT_ICON_MAP: Record<AliasNote["data"]["creationContext"], ReactElement> = {
web: <RiGlobalLine />, web: <RiGlobalLine />,
extension: <MdExtension />, extension: <MdExtension />,
"extension-inline": <MdExtension />,
} }
const IMAGE_WIDTH = 20 const IMAGE_WIDTH = 20

View File

@ -105,7 +105,7 @@ export interface AliasNote {
data: { data: {
createdAt: Date | null createdAt: Date | null
createdOn: string | null createdOn: string | null
creationContext: "extension" | "web" creationContext: "extension" | "extension-inline" | "web"
personalNotes: string personalNotes: string
websites: Array<{ websites: Array<{
url: string url: string