diff --git a/src/routes/stocks/[tickerID]/profile/+layout.svelte b/src/routes/stocks/[tickerID]/profile/+layout.svelte
new file mode 100644
index 00000000..6649e656
--- /dev/null
+++ b/src/routes/stocks/[tickerID]/profile/+layout.svelte
@@ -0,0 +1,94 @@
+
+
+
+
+
diff --git a/src/routes/stocks/[tickerID]/statistics/employees/+layout.server.ts b/src/routes/stocks/[tickerID]/profile/employees/+layout.server.ts
similarity index 100%
rename from src/routes/stocks/[tickerID]/statistics/employees/+layout.server.ts
rename to src/routes/stocks/[tickerID]/profile/employees/+layout.server.ts
diff --git a/src/routes/stocks/[tickerID]/statistics/employees/+layout.svelte b/src/routes/stocks/[tickerID]/profile/employees/+layout.svelte
similarity index 88%
rename from src/routes/stocks/[tickerID]/statistics/employees/+layout.svelte
rename to src/routes/stocks/[tickerID]/profile/employees/+layout.svelte
index 70d2b0b1..5a3070cd 100644
--- a/src/routes/stocks/[tickerID]/statistics/employees/+layout.svelte
+++ b/src/routes/stocks/[tickerID]/profile/employees/+layout.svelte
@@ -1,9 +1,16 @@
@@ -44,7 +51,7 @@
: ''}"
>| {item?.name?.length > 30
? item?.name?.slice(0, 30) + "..."
diff --git a/src/routes/stocks/[tickerID]/statistics/employees/+page.server.ts b/src/routes/stocks/[tickerID]/profile/employees/+page.server.ts
similarity index 100%
rename from src/routes/stocks/[tickerID]/statistics/employees/+page.server.ts
rename to src/routes/stocks/[tickerID]/profile/employees/+page.server.ts
diff --git a/src/routes/stocks/[tickerID]/statistics/employees/+page.svelte b/src/routes/stocks/[tickerID]/profile/employees/+page.svelte
similarity index 99%
rename from src/routes/stocks/[tickerID]/statistics/employees/+page.svelte
rename to src/routes/stocks/[tickerID]/profile/employees/+page.svelte
index 0173e977..d16d4b6d 100644
--- a/src/routes/stocks/[tickerID]/statistics/employees/+page.svelte
+++ b/src/routes/stocks/[tickerID]/profile/employees/+page.svelte
@@ -377,11 +377,7 @@
}
$: {
- if (
- employeeHistory?.length > 0 &&
- $stockTicker &&
- typeof window !== "undefined"
- ) {
+ if (employeeHistory?.length > 0 && $stockTicker) {
employeeHistory = data?.getHistoryEmployee ?? [];
historyList = sortByDate(employeeHistory);
@@ -409,7 +405,7 @@
}
}
- let htmlOutput;
+ let htmlOutput = generateEmployeeInfoHTML();
diff --git a/src/routes/stocks/[tickerID]/statistics/+layout.svelte b/src/routes/stocks/[tickerID]/statistics/+layout.svelte
index e8884d74..89ab44fe 100644
--- a/src/routes/stocks/[tickerID]/statistics/+layout.svelte
+++ b/src/routes/stocks/[tickerID]/statistics/+layout.svelte
@@ -8,7 +8,6 @@
const subSectionMap = {
"market-cap": "/statistics/market-cap",
"price-reaction": "/statistics/price-reaction",
- employees: "/statistics/employees",
"fail-to-deliver": "/statistics/fail-to-deliver",
};
@@ -25,7 +24,6 @@
const sectionMap = {
"market-cap": "market-cap",
"price-reaction": "price-reaction",
- employees: "employees",
"fail-to-deliver": "fail-to-deliver",
};
@@ -78,15 +76,6 @@
>
Price Reaction
- changeSubSection("employees")}
- class="p-2 px-5 cursor-pointer {displaySubSection === 'employees'
- ? 'text-white bg-primary sm:hover:bg-opacity-[0.95]'
- : 'text-gray-400 sm:hover:text-white sm:hover:bg-primary sm:hover:bg-opacity-[0.95]'}"
- >
- Employees
-
|