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": {
"label": "In der Erweiterung erstellt"
},
"extension-inline": {
"label": "Mit der Erweiterung erstellt"
}
},
"createdOn": {

View File

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

View File

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

View File

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