Skip to content

Instantly share code, notes, and snippets.

View tmcnab's full-sized avatar
🏠
Working from home

Tristan McNab tmcnab

🏠
Working from home
View GitHub Profile
export default function CheckboxGrid ({ columns, items, onChange }) {
// TODO assert that columns > 0
const didChange = ({ checked, value }) => {
const nextItems = [...items]
const index = findIndex(nextItems, (item) => item.value === value)
nextItems[index] = { ...nextItems[index], checked }
onChange(nextItems)
}
const $columns = items.map(({ checked, label, value }) =>
[POST("ajax/recruitment/recruiter/bookmark", IgnoreRoutePrefix = true)]
public ActionResult Bookmark(CandidateSearchBookmark bookmark)
{
using (var r = new System.IO.StreamReader(Request.InputStream))
{
Request.InputStream.Seek(0, System.IO.SeekOrigin.Begin);
System.Diagnostics.Debug.WriteLine(sr.ReadToEnd());
}
RecruiterRepository.CreateBookmark(bookmark);