mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
added new creationContext type
This commit is contained in:
parent
87d9eaef50
commit
6a9aa24e2d
@ -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": {
|
||||||
|
@ -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": {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user