diff --git a/apps/web/src/common/constants.ts b/apps/web/src/common/constants.ts
index e5b9162dd..e7bdd9e0c 100644
--- a/apps/web/src/common/constants.ts
+++ b/apps/web/src/common/constants.ts
@@ -17,16 +17,6 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
-export const COLORS = [
- { key: "red", title: "Red" },
- { key: "orange", title: "Orange" },
- { key: "yellow", title: "Yellow" },
- { key: "green", title: "Green" },
- { key: "blue", title: "Blue" },
- { key: "purple", title: "Purple" },
- { key: "gray", title: "Gray" }
-] as const;
-
export const SUBSCRIPTION_STATUS = {
BASIC: 0,
TRIAL: 1,
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsx
index 1c8bff1ae..29b195590 100644
--- a/apps/web/src/common/dialog-controller.tsx
+++ b/apps/web/src/common/dialog-controller.tsx
@@ -88,6 +88,15 @@ export function showAddTagsDialog(noteIds: string[]) {
));
}
+export function showCreateColorDialog() {
+ return showDialog<"CreateColorDialog", string | undefined>(
+ "CreateColorDialog",
+ (Dialog, perform) => (
+