diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-18 22:54:34 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-18 22:54:34 -0500 |
| commit | a7729d519582505f001d8247d3f8273d409f6719 (patch) | |
| tree | 879bb9fae9eb9329387dc9f91eb169014e7f5795 /src/client | |
| parent | b95d323e32ad391a23a5d3b1b64b564876e97502 (diff) | |
moved assets into public directory for now. fixed infoState to use gif
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx index 35833ab23..524869e6d 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoState.tsx @@ -24,6 +24,7 @@ export class infoState { this[StateMessage] = message; Object.assign(this, arcs); this[StateEntryFunc] = entryFunc; + this[StateMessageGIF] = messageGif; } } @@ -40,7 +41,7 @@ export function InfoState( msg: string, // arcs: { [key: string]: infoArc }, entryFunc?: () => any, - gif?: string, + gif?: string ) { return new infoState(msg, arcs, entryFunc, gif); } @@ -96,13 +97,14 @@ export class CollectionFreeFormInfoState extends ObservableReactComponent<Collec render() { return ( <div className="infoUI"> - <div className="gif-container"> - <img className="gif" src="/assets/link.png" alt="state message gif"></img> + <div className="gif-container" style={{ display: this.State?.[StateMessageGIF] ? undefined : 'none' }}> + <img className="gif" src={this.State?.[StateMessageGIF]} alt="state message gif"></img> </div> {/* <img src={this.State?.[StateMessageGIF]} alt='state message gif'></img> */} {/* <img src="./assets/link.png"></img> */} {this.State?.[StateMessage]} - </div>) + </div> + ); } } |
