latest news code
This commit is contained in:
parent
075d949acc
commit
eeb585c7df
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
FROM node:20.18.0-slim AS builder
|
FROM node:20.18.0-slim AS builder
|
||||||
|
|
||||||
|
ENV NEXT_PUBLIC_AWS_DB_API_URL=https://lyxeetk4w1.execute-api.us-east-1.amazonaws.com/default/getFromStockalyzerDB
|
||||||
|
ENV NEXT_PUBLIC_AWS_DB_API_KEY=0KcuAyP5zT8kk2vW4MXAU9lMi52Yorti4vRwLwia
|
||||||
|
|
||||||
WORKDIR /home/perplexica
|
WORKDIR /home/perplexica
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
import { BookOpenText, Home, Search, SquarePen, Settings } from 'lucide-react';
|
import { BookOpenText, Home, Search, SquarePen, Settings, VideoIcon } from 'lucide-react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { useSelectedLayoutSegments } from 'next/navigation';
|
import { useSelectedLayoutSegments } from 'next/navigation';
|
||||||
import React, { useState, type ReactNode } from 'react';
|
import React, { useState, type ReactNode } from 'react';
|
||||||
|
|
@ -35,6 +35,12 @@ const Sidebar = ({ children }: { children: React.ReactNode }) => {
|
||||||
active: segments.includes('library'),
|
active: segments.includes('library'),
|
||||||
label: 'Library',
|
label: 'Library',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: VideoIcon,
|
||||||
|
href: '/news',
|
||||||
|
active: segments.includes('news'),
|
||||||
|
label: 'News',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue