Skip to content

Instantly share code, notes, and snippets.

View TautvydasDerzinskas's full-sized avatar
🏕️
Code Eat Sleep Repeat

Tautvydas Derzinskas TautvydasDerzinskas

🏕️
Code Eat Sleep Repeat
View GitHub Profile
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=1001
- PGID=100
- TZ=Europe/Warsaw
volumes:
- /srv/dev-disk-by-uuid-fb0ba068-25f2-4249-9338-abae9a266bf1/Docker/appdata/jellyfin/config:/config
---
version: "3.7"
services:
transmission:
image: lscr.io/linuxserver/transmission:latest
container_name: transmission
environment:
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TIME_ZONE}
In the project run `npm i redux react-redux redux-thunk --save`
// 1. Create redux folder with reducer, action types and action creators
// reducer.ts
import { COMMENT_ACTION_TYPES, CommentAction } from "~Redux/actionTypes";
import { IComment } from "~Interfaces";
import { getComments, saveComments } from "~Utils/localStorage";
// 1. Create context file (contexts)
import React from 'react';
export const UserContext = React.createContext<{
name: string;
surname: string;
}>({
name: '',
surname: '',