Skip to content

Commit

Permalink
Merge branch 'justinxue/phs-49-exhibit-page' of github.com:calbluepri…
Browse files Browse the repository at this point in the history
…nt/phs into justinxue/phs-49-exhibit-page
  • Loading branch information
jxmoose committed Apr 7, 2024
2 parents 1ba952e + 5e60a79 commit 9bb590f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/components/userComponents/Exhibit/Exhibit.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,6 @@
import React from 'react';
import Image from 'next/image';

/**
*
* @param root0 passed in
* @param root0.title title of exhibit
* @param root0.description description of exhibit
* @param root0.category category of exhibit
* @param root0.image image
* @param root0.id id of exhibit
* @returns exhibit component
*/

/**
* @param evt on click of button
*/
function goBack(evt: React.SyntheticEvent) {
// ignore the native anchor action
evt.preventDefault();

window.history.back();
}

/**
* @returns back button
*/
function BackButton() {
return (
<button type="button" style={{ backgroundColor: '#4b711d' }} onClick={goBack}>
{' '}
<IoIosArrowRoundBack size={40} />
</button>
);
}

/**
*
* @param root0 passed in
Expand Down
5 changes: 5 additions & 0 deletions src/types/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export type Database = {
}
};
Enums: {
media_type: 'image' | 'video' | 'link';
media_type: 'image' | 'video' | 'link';
tour_category:
| "BuildingsAndServices"
Expand Down Expand Up @@ -425,6 +426,8 @@ export type TablesInsert<
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
: never = never,
> = PublicTableNameOrOptions extends { schema: keyof Database }
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Insert: infer I;
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Insert: infer I;
}
Expand All @@ -446,6 +449,8 @@ export type TablesUpdate<
? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]
: never = never,
> = PublicTableNameOrOptions extends { schema: keyof Database }
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Update: infer U;
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
Update: infer U;
}
Expand Down

0 comments on commit 9bb590f

Please sign in to comment.