uwblueprint / shoe-project

👠👟 Repo for The Shoe Project @ UWBlueprint
https://map.theshoeproject.online
MIT License
6 stars 0 forks source link

feat: Add sign out onclick to nav bar button #342

Closed AbhiPrasad closed 3 years ago

AbhiPrasad commented 3 years ago

fixes https://github.com/uwblueprint/shoe-project/issues/318

Also cleans up some css here and there (we were missing curly braces for some css selectors)

Here is the patch that matters:

ui/src/pages/Admin/AllStories/index.tsx


export const AllStories: React.FC = () => {
const { data: tagOptions, error: tagError } = useSWR<string[]>("/api/tags");
+  const { signOut } = useAuth();

const [state, dispatch] = useReducer(allStoriesReducer, INIT_STATE); const isFilterOpen = Boolean(state.anchorEl); @@ -557,7 +563,7 @@ export const AllStories: React.FC = () => { <AllStoriesAppBar handlePublishMap={publishMap} isPublishDisabled={state.changedVisibility.length == 0}