update .gitignore, add example environment file, and modify consent handling in components
This commit is contained in:
@ -9,8 +9,12 @@ import SCOPES from "@/constants/scopes";
|
||||
import { Scopes } from "@/enums/Scopes";
|
||||
import { setTargetService } from "@/lib/store/features/targetService/targetServiceSlice";
|
||||
import { useAppDispatch } from "@/lib/store/store";
|
||||
import ServiceData from "@/types/ServiceData";
|
||||
|
||||
type ServiceData = {
|
||||
id: number;
|
||||
code: Scopes;
|
||||
name: string;
|
||||
};
|
||||
const ServicesList = () => {
|
||||
const dispatch = useAppDispatch();
|
||||
const services = useMemo(
|
||||
@ -56,7 +60,9 @@ const ServicesList = () => {
|
||||
<Stack
|
||||
className={styles.container}
|
||||
gap={"lg"}>
|
||||
{services.map((service, i) => getServiceButton(service, i))}
|
||||
{services.map((service, i) =>
|
||||
getServiceButton(service as unknown as ServiceData, i)
|
||||
)}
|
||||
<TitleWithLines title="Скоро будет" />
|
||||
{getServiceInDevelopment("Analytics")}
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user