diff --git a/.gitignore b/.gitignore index fd2b47b..d9a5d67 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ build/ -*.tgz \ No newline at end of file +*.tgz +.vscode/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 3662b37..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "typescript.tsdk": "node_modules/typescript/lib" -} \ No newline at end of file diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..f0bc407 --- /dev/null +++ b/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Dmitriy Shishkov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/src/CalendarInContext.tsx b/src/CalendarInContext.tsx index c57f838..e5ab2be 100644 --- a/src/CalendarInContext.tsx +++ b/src/CalendarInContext.tsx @@ -43,7 +43,16 @@ const CalendarInContext: React.FC = ({ eventList }) => { }, [context.state]) return ( -
+
{monthDaysState.map((day, dayIndex) => ( = ({ dayNumber, events, shaded }) => { return ( -
-
{dayNumber}
-
    +
    +
    + {dayNumber} +
    +
      {events.map((event, key) => ( -
    • {event.title}
    • +
    • + {event.title} +
    • ))}
    +
    ) }