tweaks
This commit is contained in:
@ -4,8 +4,7 @@ import toast from "react-hot-toast";
|
|||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
|
|
||||||
const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => {
|
const PublisherInlineForm = ({ publisherId, initialShiftsPerMonth }) => {
|
||||||
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth);
|
const [desiredShiftsPerMonth, setDesiredShiftsPerMonth] = useState(initialShiftsPerMonth || 2);
|
||||||
const router = useRouter();
|
|
||||||
const storedValue = useRef(initialShiftsPerMonth);
|
const storedValue = useRef(initialShiftsPerMonth);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -113,7 +113,7 @@ export default function MySchedulePage({ assignments }) {
|
|||||||
Добави в календар
|
Добави в календар
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
className="mr-2 mb-2 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setАssignment(assignment);
|
setАssignment(assignment);
|
||||||
setIsModalOpen(true)
|
setIsModalOpen(true)
|
||||||
@ -122,7 +122,7 @@ export default function MySchedulePage({ assignments }) {
|
|||||||
Избери Заместник
|
Избери Заместник
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="inline-flex items-center px-3 mx-2 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
className="mr-2 mb-2 inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
||||||
onClick={() => searchReplacement(assignment.id)}
|
onClick={() => searchReplacement(assignment.id)}
|
||||||
>
|
>
|
||||||
Търси заместник
|
Търси заместник
|
||||||
|
BIN
public/favicon.png
Normal file
BIN
public/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
@ -3,7 +3,7 @@
|
|||||||
<section>
|
<section>
|
||||||
<h2>Промяна твоята смяна на {{placeName}} {{dateStr}} </h2>
|
<h2>Промяна твоята смяна на {{placeName}} {{dateStr}} </h2>
|
||||||
<p>Здравейте {{firstName}}, </p>
|
<p>Здравейте {{firstName}}, </p>
|
||||||
<p>{{firstName}} {{lastName}} ще замести {{oldPubName}} на смяната ви на {{dateStr}} от {{time}}</p>
|
<p>{{firstName}} {{lastName}} ще замести {{oldPubName}} на смяната ви в {{dateStr}} от {{time}}</p>
|
||||||
<p>Новаия списък с участници за тази смяна е:</p>
|
<p>Новаия списък с участници за тази смяна е:</p>
|
||||||
<ul>
|
<ul>
|
||||||
{{#each newPubs}}
|
{{#each newPubs}}
|
||||||
@ -14,6 +14,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="footer">
|
{{!-- <footer class="footer">
|
||||||
Изпратено на: {{sentDate}}
|
Изпратено на: {{sentDate}}
|
||||||
</footer>
|
</footer> --}}
|
Reference in New Issue
Block a user