Skip to content

Commit

Permalink
Move animal constants to Descriptions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbarbosa committed Dec 16, 2023
1 parent a21f66d commit 278f54a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
20 changes: 17 additions & 3 deletions client/src/lib/Descriptions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
export const negativeKeywords = ["Mobile Case",
export const animals = [
"Ostrich",
"Wolf",
"Silky shark",
"Great white shark",
"Sand tiger shark",
"Hippoglossus",
"Halibut",
"Ground beetle",
"Nile crocodile",
"Redfish",
];

export const negativeKeywords = [
"Mobile Case",
"Tool",
"Faux leather",
"Crystal",
Expand All @@ -25,7 +39,7 @@ export const negativeKeywords = ["Mobile Case",
"T-shirt",
"Resin",
"Photo",
]
];

export const descriptions = [
"cobra",
Expand Down Expand Up @@ -817,4 +831,4 @@ export const descriptions = [
"excotic pet",
"cites",
"wildlife",
]
];
4 changes: 2 additions & 2 deletions client/src/lib/stores.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { writable } from 'svelte/store';
import { descriptions, negativeKeywords } from './Descriptions';
import { animals, descriptions, negativeKeywords } from "./Descriptions";

export const labelStore = writable<string[]>(descriptions);

export const animalStore = writable<string[]>(["Ostrich", "Wolf", "Silky shark", "Great white shark", "Sand tiger shark", "Hippoglossus", "Halibut", "Ground beetle", "Nile crocodile", "Redfish"]);
export const animalStore = writable<string[]>(animals);

export const negativeKeywordStore = writable<string[]>(negativeKeywords);

Expand Down

0 comments on commit 278f54a

Please sign in to comment.